public abstract class Service
extends java.lang.Object
Constructor and Description |
---|
Service() |
Modifier and Type | Method and Description |
---|---|
static java.util.HashMap<java.lang.Class<?>,Service> |
cloneLoadedServices()
Clones loaded services table.
|
protected static Service |
getService(java.lang.Class serviceClass)
Get a service.
|
protected void |
initialize()
Initialize this manager.
|
static void |
resetAllServices()
Resets all services, causing them to be recreated from scratch next
time the
getService( Class ) API is used. |
static void |
setLoadedServices(java.util.HashMap<java.lang.Class<?>,Service> loadedServices)
Set the loaded services table.
|
protected void initialize()
This implementation does nothing.
protected static Service getService(java.lang.Class serviceClass) throws javax.ide.spi.ProviderNotFoundException
serviceClass
- the class of the service.javax.ide.spi.ProviderNotFoundException
- if an implementation of the service could not
be located.public static void resetAllServices()
getService( Class )
API is used. Extension developers are strongly discouraged from using this method. It is called by the internal LookupProvider API to reset services when a new provider is registered.
public static java.util.HashMap<java.lang.Class<?>,Service> cloneLoadedServices()
This should only ever be called from test code.
public static void setLoadedServices(java.util.HashMap<java.lang.Class<?>,Service> loadedServices)
This should only ever be called from test code.
loadedServices
- the loaded services.