|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.service.AbstractService
Provides basic implementation of a service.
Service| Field Summary | |
protected boolean |
debug
A flag that controls logging of DEBUG-level messages. |
protected boolean |
initialized
Boolean flag to indicate that the service has been initialized. |
protected Logger |
logger
The Logger object associated with the ServiceConfig's ServiceContext. |
protected ServiceConfig |
serviceConfig
The ServiceConfig object that configures this Service |
| Constructor Summary | |
AbstractService()
Create a new AbstractService. |
|
| Method Summary | |
void |
destroy()
Destroy the Service. |
ServiceConfig |
getServiceConfig()
Get the ServiceConfig. |
void |
initialize(ServiceConfig config)
Initialize the Service. |
boolean |
setDebug(boolean enable)
Enable or disable debugging. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ServiceConfig serviceConfig
protected Logger logger
protected boolean initialized
protected boolean debug
| Constructor Detail |
public AbstractService()
Just a reminder this is an abstract class, cannot be instantiated.
| Method Detail |
public void initialize(ServiceConfig config)
throws ServiceException
initialize in interface Serviceconfig - the ServiceConfig
ServiceException - if an error initializing the Servicepublic ServiceConfig getServiceConfig()
getServiceConfig in interface Servicepublic void destroy()
destroy in interface Servicepublic boolean setDebug(boolean enable)
setDebug in interface Debuggableenable - if true, enable debugging, else disable debugging.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||