Package net.officefloor.test
Interface TestDependencyService
-
- All Known Implementing Classes:
H2ResetTestDependencyService
public interface TestDependencyService
Service providing additional test dependencies.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
getObject(TestDependencyServiceContext context)
Obtains the dependency object.boolean
isObjectAvailable(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:
true
if 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.
-
-