Skip to content

Service Manager

calltl edited this page Feb 25, 2013 · 1 revision

IServiceManager is an utility to retrieve services from the service registry. Since the service manager itself is a service, you will need to use ServiceUtils to access the service manager.

// Get a service from the registry.  If the service is not ready
// at the time of calling, it will wait for 30 sec until it is ready
IDataAccessManager dam = ServiceUtils.getService(IDataAccessManager .class);
// Get a service now.  If the service is not ready, it will throw ServiceNotFoundException
IScriptingManager scriptingManager = ServiceUtils.getService(IScriptingManager .class);
Clone this wiki locally