org.huihoo.jfox.system
Interface Component

All Superinterfaces:
Loggable, Persistentable, java.io.Serializable
All Known Subinterfaces:
Container, Service
All Known Implementing Classes:
ComponentSupport, ContainerImpl, ServiceSupport

public interface Component
extends Loggable, Persistentable


Method Summary
 void destroy()
          doDestroy the system, tear down
 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
 
Methods inherited from interface org.huihoo.jfox.system.Loggable
getLogger
 

Method Detail

getName

public java.lang.String getName()
get the name of the Service, example: NamingService


getState

public State getState()
get the state of the Service, the status defined in Status class


init

public void init()
          throws java.lang.Exception
doCreate the system, do expensive operations etc

Throws:
java.lang.Exception

destroy

public void destroy()
             throws java.lang.Exception
doDestroy the system, tear down

Throws:
java.lang.Exception