public final class ServiceManager extends java.lang.Object implements JPropertiesListener
REVISION
Modifier and Type | Method and Description |
---|---|
ServiceResponse |
executeService(java.lang.String serviceName,
ServiceForm form)
Executes a service.
|
static ServiceManager |
getInstance() |
boolean |
hasService(java.lang.String serviceName)
Checks whether the service with the given name exists.
|
void |
loadServices(JProperties properties) |
void |
propertiesChange(JProperties properties)
Invoked after properties have been modified in JCMS and save on disk.
|
void |
registerService(java.lang.String serviceName,
Service service)
Registers a new service associated to the given service name.
|
ServiceResponse |
sendServiceAction(java.lang.String action,
ServiceForm form) |
void |
unregisterService(java.lang.String serviceName)
Unregisters the service associated to the given service name.
|
public static ServiceManager getInstance()
public void propertiesChange(JProperties properties)
JPropertiesListener
You cannot alter the value received in parameters.
propertiesChange
in interface JPropertiesListener
properties
- the properties which have been modified (may not contain all JCMS properties)public void registerService(java.lang.String serviceName, Service service)
serviceName
- service name to registerservice
- Service to registerpublic void unregisterService(java.lang.String serviceName)
serviceName
- service name to unregisterpublic void loadServices(JProperties properties)
properties
- public ServiceResponse sendServiceAction(java.lang.String action, ServiceForm form)
public ServiceResponse executeService(java.lang.String serviceName, ServiceForm form)
serviceName
- service name to executeform
- Form sent to the servicepublic boolean hasService(java.lang.String serviceName)
serviceName
- Service nametrue
if the service exists, false
insteadCopyright © 2001-2018 Jalios SA. All Rights Reserved.