public class ServiceManager extends Object implements ServiceProvider, ServiceConstants
SCOPE_GLOBAL, SCOPE_PROJECT
Constructor and Description |
---|
ServiceManager(String serviceScope)
Create a service manager for the given scope.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Remove all service instances.
|
<T> T |
getService(Class<T> serviceInterface)
Get the service of the given type if available.
|
String |
getServiceScope()
Get the scope of services provided by the manager.
|
public ServiceManager(String serviceScope)
serviceScope
- the service scope, null
for all service
scopespublic <T> T getService(Class<T> serviceInterface)
ServiceProvider
getService
in interface ServiceProvider
serviceInterface
- the service interface or typenull
if no such service existspublic String getServiceScope()
null
representing all
scopespublic void clear()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a