Package net.officefloor.test
Interface TestDependencyService
-
- All Known Implementing Classes:
H2ResetTestDependencyService
public interface TestDependencyServiceService providing additional test dependencies.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetObject(TestDependencyServiceContext context)Obtains the dependency object.booleanisObjectAvailable(TestDependencyServiceContext context)Indicates if able to provide object.
-
-
-
Method Detail
-
isObjectAvailable
boolean isObjectAvailable(TestDependencyServiceContext context)
Indicates if able to provide object.- Parameters:
context-TestDependencyServiceContext.- Returns:
trueif able to provide object.
-
getObject
java.lang.Object getObject(TestDependencyServiceContext context) throws UnknownObjectException, java.lang.Throwable
Obtains the dependency object.- Parameters:
context-TestDependencyServiceContext.- Returns:
- Object.
- Throws:
UnknownObjectException- If unknown bound object name.java.lang.Throwable- If failure in obtaining the bound object.
-
-