public class InProcessServiceManager extends Object implements IServiceManager
Data are lost when restarting the application.
Reads the following configuration :
Constructor and Description |
---|
InProcessServiceManager() |
Modifier and Type | Method and Description |
---|---|
Properties |
getConfiguration()
Get current configuration.
|
IServiceMonitor |
getMonitor(IService service)
Returns a monitor for a new service call.
|
IService |
getService(String name,
String group)
Create or get the service definition identified by group and name.
|
List<IService> |
getServices()
List all current services.
|
void |
setConfiguration(Properties configuration)
Inject configuration for service manager.
|
public IServiceMonitor getMonitor(IService service)
getMonitor
in interface IServiceManager
public List<IService> getServices()
Services are defined using #getService(String, String)
getServices
in interface IServiceManager
public IService getService(String name, String group)
getService
in interface IServiceManager
name
- name of the service.group
- group of the service.public void setConfiguration(Properties configuration)
setConfiguration
in interface IServiceManager
public Properties getConfiguration()
IServiceManager
getConfiguration
in interface IServiceManager
Copyright © 2010–2016. All rights reserved.