org.ow2.util.component.api
Interface Component

All Known Subinterfaces:
IWrappedComponent

public interface Component

Defines the interface that a component needs to implement.

Author:
Florent Benoit

Method Summary
 void init()
          Init method.
This method is called before the start method.
 void start()
          Start method.
This method is called after the init method.
 void stop()
          Stop method.
This method is called when component needs to be stopped.
 

Method Detail

init

void init()
          throws ComponentException
Init method.
This method is called before the start method.

Throws:
ComponentException - if the initialization has failed.

start

void start()
           throws ComponentException
Start method.
This method is called after the init method.

Throws:
ComponentException - if the start has failed.

stop

void stop()
          throws ComponentException
Stop method.
This method is called when component needs to be stopped.

Throws:
ComponentException - if the stop is failing.


Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.