@Service @Singleton public class RestService extends Object implements RemoteService
Constructor and Description |
---|
RestService() |
Modifier and Type | Method and Description |
---|---|
ServiceInformation |
getServiceInformation()
Provides servicing information that can be used by remote endpoints
to connect to this remote service.
|
void |
init() |
boolean |
isEnabled()
Returns wether this remote service is enabled
|
void |
startService()
Called during kernel startup, can be used to initialize any servicing components
|
void |
stopService()
Called during kernel shutdown, can be used to cleanup used resources
|
public RestService() throws ConfigurationException
ConfigurationException
@PostConstruct public void init() throws ConfigurationException
ConfigurationException
public boolean isEnabled()
RemoteService
isEnabled
in interface RemoteService
public ServiceInformation getServiceInformation()
RemoteService
getServiceInformation
in interface RemoteService
public void startService() throws JasDBException
RemoteService
startService
in interface RemoteService
ServiceException
- If unable to start the remote serviceJasDBException
public void stopService() throws ServiceException
RemoteService
stopService
in interface RemoteService
ServiceException
- If unable to cleanly stop the remote serviceCopyright © 2015. All rights reserved.