public interface ServiceManager
Modifier and Type | Method and Description |
---|---|
<T> T |
getService(Class<T> serviceClass)
Gets a service implementation given the interface class.
|
<T> T |
getService(Class<T> serviceClass,
String name)
Gets a service implementation given the interface class and a name.
|
<T> T getService(Class<T> serviceClass) throws Exception
T
- serviceClass
- the service interface classException
<T> T getService(Class<T> serviceClass, String name) throws Exception
This is useful to lookup services that are not singletons and can be identified using a service name.
T
- serviceClass
- the service interface classname
- the service nameException
Copyright © 2011 Nuxeo SA. All Rights Reserved.