Method Summary |
|
public String | getApplicationRoot() Get the application root as set by
the parent application. |
public Configuration | getConfiguration() Get the configuration for this service manager. |
public Configuration | getConfiguration(String name) Returns the configuration for the specified service.
Parameters: name - The name of the service. |
public Service | getService(String name) Returns an instance of requested Service.
Parameters: name - The name of the Service requested. |
protected Service | getServiceInstance(String name) Retrieves an instance of a Service without triggering late
initialization.
Early initialization of a Service can require access to Service
properties. |
public Iterator | getServiceNames() Returns an Iterator over all known service names. |
public Iterator | getServiceNames(String prefix) Returns an Iterator over all known service names beginning with
the provided prefix.
Parameters: prefix - The prefix against which to test. |
public Object | getServiceObject(String name) Get an application specific service object. |
public void | init() Initialize this service manager. |
protected void | initMapping() Creates a mapping between Service names and class names.
The mapping is built according to settings present in
TurbineResources.properties. |
public synchronized void | initService(String name) Performs early initialization of specified service. |
public void | initServices() Performs early initialization of all services. |
public void | initServices(boolean report) Performs early initialization of all services. |
public boolean | isRegistered(String serviceName) Determines whether a service is registered in the configured
TurbineResources.properties .
Parameters: serviceName - The name of the service whose existance to check. |
public void | setApplicationRoot(String applicationRoot) Set the application root. |
public void | setConfiguration(Configuration configuration) Set the configuration object for the services broker. |
public void | setServiceObject(String name, Object value) Set an application specific service object
that can be used by application specific
services. |
public synchronized void | shutdownService(String name) Shuts down a Service , releasing resources
allocated by an Service , and returns it to its
initial (uninitialized) state. |
public void | shutdownServices() Shuts down all Turbine services, releasing allocated resources and
returning them to their initial (uninitialized) state. |