org.huihoo.jfox.system
Class ServiceSupport

java.lang.Object
  extended byorg.huihoo.jfox.system.ComponentSupport
      extended byorg.huihoo.jfox.system.ServiceSupport
All Implemented Interfaces:
Component, Loggable, Persistentable, java.lang.Runnable, java.io.Serializable, Service
Direct Known Subclasses:
ContainerInvokerSupport, ServiceWrapper

public abstract class ServiceSupport
extends ComponentSupport
implements Service

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.huihoo.jfox.system.ComponentSupport
logger, name, proxyInstance, sequence, state
 
Constructor Summary
ServiceSupport()
           
ServiceSupport(java.lang.String name)
           
 
Method Summary
protected abstract  void doStart()
          do actually start action
protected abstract  void doStop()
          do actually stop action
 boolean isRunning()
          the running flag
 void start()
          doStart the system, doCreate is already called
 void stop()
          doStop the system
 
Methods inherited from class org.huihoo.jfox.system.ComponentSupport
destroy, doDestroy, doInit, getLogger, getName, getState, init, parseName, setLogger, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.huihoo.jfox.system.Component
destroy, getName, getState, init
 
Methods inherited from interface org.huihoo.jfox.system.Loggable
getLogger
 
Methods inherited from interface java.lang.Runnable
run
 

Constructor Detail

ServiceSupport

public ServiceSupport()

ServiceSupport

public ServiceSupport(java.lang.String name)
Method Detail

isRunning

public boolean isRunning()
Description copied from interface: Service
the running flag

Specified by:
isRunning in interface Service

start

public void start()
           throws java.lang.Exception
Description copied from interface: Service
doStart the system, doCreate is already called

Specified by:
start in interface Service
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Description copied from interface: Service
doStop the system

Specified by:
stop in interface Service
Throws:
java.lang.Exception

doStart

protected abstract void doStart()
                         throws java.lang.Exception
do actually start action

Throws:
java.lang.Exception

doStop

protected abstract void doStop()
                        throws java.lang.Exception
do actually stop action

Throws:
java.lang.Exception