|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.huihoo.jfox.system.ComponentSupport
| Field Summary | |
protected Logger |
logger
|
protected java.lang.String |
name
system name of the system |
protected java.lang.Object |
proxyInstance
|
protected long |
sequence
|
protected State |
state
the status value of the system |
| Constructor Summary | |
ComponentSupport()
|
|
ComponentSupport(java.lang.String name)
|
|
| Method Summary | |
void |
destroy()
doDestroy the system, tear down |
protected abstract void |
doDestroy()
do actually destory action |
protected abstract void |
doInit()
do actually create action |
Logger |
getLogger()
get the logger |
java.lang.String |
getName()
get the name of the Service, example: NamingService |
State |
getState()
get the state of the Service, the status defined in Status class |
void |
init()
doCreate the system, do expensive operations etc |
protected static java.lang.String |
parseName(java.lang.String className)
|
protected void |
setLogger(Logger logger)
|
protected void |
setName(java.lang.String name)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String name
protected volatile State state
protected Logger logger
protected volatile long sequence
protected java.lang.Object proxyInstance
| Constructor Detail |
public ComponentSupport()
public ComponentSupport(java.lang.String name)
| Method Detail |
public java.lang.String getName()
Component
getName in interface Componentprotected void setName(java.lang.String name)
public State getState()
Component
getState in interface Componentpublic Logger getLogger()
Loggable
getLogger in interface Loggableprotected void setLogger(Logger logger)
public void init()
throws java.lang.Exception
Component
init in interface Componentjava.lang.Exception
public void destroy()
throws java.lang.Exception
Component
destroy in interface Componentjava.lang.Exception
protected abstract void doInit()
throws java.lang.Exception
java.lang.Exception
protected abstract void doDestroy()
throws java.lang.Exception
java.lang.Exceptionprotected static java.lang.String parseName(java.lang.String className)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||