Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.huihoo.jfox.service
Interface Component

All Superinterfaces:
  Loggable, Persistentable, java.io.Serializable

All Known Subinterfaces:
  ComponentSupportMBean, DirMLetMBean, ObjectPool, ObjectPoolMBean, PoolDataSourceMBean, QueueThreadPoolMBean, Service, ServiceSupportMBean, ServiceWrapperMBean, SimpleConnectionPoolMBean, SimpleObjectPoolMBean, SimpleThreadPoolMBean

public interface Component
extends Loggable, Persistentable

Author:
  Young Yang

Method Summary
`void` | `destroy()` doDestroy the service, 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 service, do expensive operations etc

Methods inherited from interface org.huihoo.jfox.service.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 service, do expensive operations etc

### destroy

    public void destroy()
                 throws java.lang.Exception

  doDestroy the service, tear down

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD