public interface ServiceProvider
A service provider is used by the framework to be able to change the way local services are found.
For example you may want to use a simple service provider for testing pourpose to avoid loading the nuxeo runtime framework to register services.
To set a service provider use: DefaultServiceProvider.setProvider(ServiceProvider)
Modifier and Type | Method and Description |
---|---|
<T> T |
getService(Class<T> serviceClass)
Gets the service instance given its API class.
|
<T> T getService(Class<T> serviceClass)
Copyright © 2015 Nuxeo SA. All rights reserved.