Package net.officefloor.jdbc.h2.test
Class H2ResetTestDependencyService
- java.lang.Object
-
- net.officefloor.jdbc.h2.test.H2ResetTestDependencyService
-
- All Implemented Interfaces:
ServiceFactory<TestDependencyService>,TestDependencyService,TestDependencyServiceFactory
public class H2ResetTestDependencyService extends java.lang.Object implements TestDependencyService, TestDependencyServiceFactory
TestDependencyServiceproviding theH2Reset.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description H2ResetTestDependencyService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestDependencyServicecreateService(ServiceContext context)Creates the service.java.lang.ObjectgetObject(TestDependencyServiceContext context)Obtains the dependency object.booleanisObjectAvailable(TestDependencyServiceContext context)Indicates if able to provide object.
-
-
-
Method Detail
-
createService
public TestDependencyService createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<TestDependencyService>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
java.lang.Throwable- If fails to create the service.
-
isObjectAvailable
public boolean isObjectAvailable(TestDependencyServiceContext context)
Description copied from interface:TestDependencyServiceIndicates if able to provide object.- Specified by:
isObjectAvailablein interfaceTestDependencyService- Parameters:
context-TestDependencyServiceContext.- Returns:
trueif able to provide object.
-
getObject
public java.lang.Object getObject(TestDependencyServiceContext context) throws UnknownObjectException, java.lang.Throwable
Description copied from interface:TestDependencyServiceObtains the dependency object.- Specified by:
getObjectin interfaceTestDependencyService- Parameters:
context-TestDependencyServiceContext.- Returns:
- Object.
- Throws:
UnknownObjectException- If unknown bound object name.java.lang.Throwable- If failure in obtaining the bound object.
-
-