|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.AbstractService
public abstract class AbstractService
Abstract implementation of a service. A service may extend this implementation if it is only used within a local JVM process.
This class extends
com.sas.services.AbstractRemoteService
which provides a version that may be used
used in a distributed environment where the service needs to be made
available to remote clients.
Methods specified in this local version do not throw
RemoteException
.
ServiceConfigurationInterface
Field Summary |
---|
Fields inherited from interface com.sas.services.RemoteServiceInterface |
---|
CLASS_IDENTIFIER, CLASS_IDENTIFIER_1_1, CLASS_IDENTIFIER_1_2, CLASS_IDENTIFIER_SERVICE_TYPE, CLASS_IDENTIFIER_SERVICE_TYPE_1_1, CLASS_IDENTIFIER_SERVICE_TYPE_1_2 |
Constructor Summary | |
---|---|
AbstractService(DiscoveryServiceInterface discoveryService)
Constructs a service. |
Method Summary | |
---|---|
void |
configure(ServiceConfigurationInterface serviceConfiguration)
Configures the service. |
void |
destroy()
Destroys the service. |
java.lang.String |
getEntityKey()
Gets the service's entity key. |
Constructor Detail |
---|
public AbstractService(DiscoveryServiceInterface discoveryService)
discoveryService
- A discovery service which may be used to locate other services and
to which a service must bind in order to be discoverable by other
services.Method Detail |
---|
public void configure(ServiceConfigurationInterface serviceConfiguration) throws InitializationException, ServiceException
configure
in interface RemoteServiceInterface
configure
in class AbstractRemoteService
serviceConfiguration
- Service's configuration.
InitializationException
- in unable to configure the service.
ServiceException
- if a service exception is encountered.public java.lang.String getEntityKey()
getEntityKey
in interface com.sas.entities.EntityKeyInterface
getEntityKey
in class AbstractRemoteService
null
if unable to determine
the entity key.
java.lang.IllegalStateException
- if the service has been destroyed.AbstractRemoteService.getEntityKey()
public void destroy() throws ServiceException
destroy
in interface RemoteServiceInterface
destroy
in class AbstractRemoteService
ServiceException
- if unable to cleanly destroy the service.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |