public interface IServiceContainer
Modifier and Type | Method and Description |
---|---|
<T> void |
deregisterService(java.lang.Class<T> classType)
Deregisters service.
|
<T> T |
getService(java.lang.Class<T> classType)
Gets the esrvice instance registered by type
|
<T> boolean |
hasService(java.lang.Class<T> classType)
Determines whether this instance has the service of specified type.
|
<T> void |
registerService(java.lang.Class<T> classType,
T service)
Registers the service.
|
<T> void registerService(java.lang.Class<T> classType, T service)
T
- The type of service.classType
- The type of service.service
- The service instance to register.<T> boolean hasService(java.lang.Class<T> classType)
T
- The type of service.classType
- The type of service.<T> T getService(java.lang.Class<T> classType)
T
- The type of service.classType
- The service type to get.<T> void deregisterService(java.lang.Class<T> classType)
T
- The type of service.classType
- The type of service.