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
TestDependencyService
providing theH2Reset
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description H2ResetTestDependencyService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestDependencyService
createService(ServiceContext context)
Creates the service.java.lang.Object
getObject(TestDependencyServiceContext context)
Obtains the dependency object.boolean
isObjectAvailable(TestDependencyServiceContext context)
Indicates if able to provide object.
-
-
-
Method Detail
-
createService
public TestDependencyService createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactory
Creates the service.- Specified by:
createService
in 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:TestDependencyService
Indicates if able to provide object.- Specified by:
isObjectAvailable
in interfaceTestDependencyService
- Parameters:
context
-TestDependencyServiceContext
.- Returns:
true
if able to provide object.
-
getObject
public java.lang.Object getObject(TestDependencyServiceContext context) throws UnknownObjectException, java.lang.Throwable
Description copied from interface:TestDependencyService
Obtains the dependency object.- Specified by:
getObject
in interfaceTestDependencyService
- Parameters:
context
-TestDependencyServiceContext
.- Returns:
- Object.
- Throws:
UnknownObjectException
- If unknown bound object name.java.lang.Throwable
- If failure in obtaining the bound object.
-
-