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 Object
implements TestDependencyService, TestDependencyServiceFactory
TestDependencyService providing the H2Reset.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateService(ServiceContext context) Creates the service.getObject(TestDependencyServiceContext context) Obtains the dependency object.booleanIndicates if able to provide object.
-
Constructor Details
-
H2ResetTestDependencyService
public H2ResetTestDependencyService()
-
-
Method Details
-
createService
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<TestDependencyService>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
Throwable- If fails to create the service.
-
isObjectAvailable
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 Object getObject(TestDependencyServiceContext context) throws UnknownObjectException, 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.Throwable- If failure in obtaining the bound object.
-