|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AludraServiceContext
Interface for AludraService contexts. Each service will get such a context during its initialization. The context can be used to retrieve other contexts, or to get the name of the current instance of the service, if any.
Method Summary | ||
---|---|---|
String |
getInstanceName()
Returns the name of the current service instance, if any. |
|
|
getNonLoggingService(Class<T> serviceInterface)
Gets the service for the given service interface. |
|
|
getService(Class<T> serviceInterface)
Gets the service for the given service interface. |
Methods inherited from interface org.aludratest.service.AludraContext |
---|
getNonLoggingService, getService, newComponentInstance |
Method Detail |
---|
String getInstanceName()
null
if no instance name is set.<T extends AludraService> T getService(Class<T> serviceInterface)
serviceInterface
- Class of the service interface to retrieve (e.g. FileService.class
).
<T extends AludraService> T getNonLoggingService(Class<T> serviceInterface)
serviceInterface
- Class of the service interface to retrieve (e.g. FileService.class
).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |