| java.lang.Object org.eclipse.ui.internal.services.ServiceLocator
ServiceLocator | public ServiceLocator()(Code) | | Constructs a service locator with no parent.
|
ServiceLocator | public ServiceLocator(IServiceLocator parent)(Code) | | Constructs a service locator with the given parent.
Parameters: parent - The parent for this service locator; this value may benull . |
activate | final public void activate()(Code) | | |
deactivate | final public void deactivate()(Code) | | |
dispose | final public void dispose()(Code) | | |
hasService | final public boolean hasService(Class key)(Code) | | |
registerService | final public void registerService(Class api, Object service)(Code) | | Registers a service with this locator. If there is an existing service
matching the same api and it implements
IDisposable , it will be disposed.
Parameters: api - This is the interface that the service implements. Must not benull . Parameters: service - The service to register. This must be some implementation ofapi . This value must not be null . |
|
|