|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.fortress.util.test.FullLifecycleComponent
This test class is used to test the AbstractComponent facilities for you.
| Field Summary | |
private ServiceManager |
m_componentManager |
private Configuration |
m_configuration |
private Context |
m_context |
private Logger |
m_logger |
private Parameters |
m_parameters |
private ComponentStateValidator |
m_validator |
| Constructor Summary | |
FullLifecycleComponent() |
|
| Method Summary | |
void |
configure(Configuration config)Pass the Configuration to the Configurable class. |
void |
contextualize(Context context)Pass the Context to the component. |
void |
dispose()The dispose operation is called at the end of a components lifecycle. |
void |
enableLogging(Logger logger)Provide component with a logger. |
void |
initialize()Initialize the component. |
void |
parameterize(Parameters params)Provide component with parameters. |
void |
resume()Resumes the component. |
void |
service(ServiceManager manager)Pass the ServiceManager to the Serviceable. |
void |
start()Starts the component. |
void |
stop()Stops the component. |
void |
suspend()Suspends the component. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private ComponentStateValidator m_validator
private Logger m_logger
private Context m_context
private Parameters m_parameters
private Configuration m_configuration
private ServiceManager m_componentManager
| Constructor Detail |
public FullLifecycleComponent()
| Method Detail |
public void enableLogging(Logger logger)
LogEnabledenableLogging in interface LogEnabledlogger - the logger. Must not be null.
public void contextualize(Context context)
throws ContextException
Contextualizablecontextualize in interface Contextualizablecontext - the context. Must not be null.ContextException - if context is invalid
public void parameterize(Parameters params)
throws ParameterException
Parameterizableparameterize in interface Parameterizableparams - the parameters. Must not be null.ParameterException - if parameters are invalid
public void configure(Configuration config)
throws ConfigurationException
ConfigurableConfiguration to the Configurable class.
configure in interface Configurableconfig - the class configurations. Must not be null.ConfigurationException - if an error occurs
public void service(ServiceManager manager)
throws ServiceException
ServiceableServiceManager to the Serviceable. The Serviceable implementation should use the specified ServiceManager to acquire the components it needs for execution.
service in interface Serviceablemanager - The ServiceManager which this Serviceable uses. Must not be null.ServiceException - if an error occurs
public void initialize()
throws java.lang.Exception
Initializableinitialize in interface Initializablejava.lang.Exception - if an error occurs
public void start()
throws java.lang.Exception
Startablestart in interface Startablejava.lang.Exception - if Component can not be startedpublic void suspend()
Suspendablesuspend in interface Suspendablepublic void resume()
Suspendableresume in interface Suspendable
public void stop()
throws java.lang.Exception
Startablestop in interface Startablejava.lang.Exception - if the Component can not be Stopped.public void dispose()
Disposabledispose in interface Disposable
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||