org.apache.avalon.excalibur.testcase
Class FullLifecycleComponent

java.lang.Object
  extended byorg.apache.avalon.excalibur.testcase.FullLifecycleComponent
All Implemented Interfaces:
Configurable, Contextualizable, Disposable, Initializable, LogEnabled, Parameterizable, Serviceable, Startable, Suspendable, ThreadSafe

Deprecated. ECM is no longer supported

public final class FullLifecycleComponent
extends java.lang.Object
implements LogEnabled, Contextualizable, Parameterizable, Configurable, Serviceable, Initializable, Startable, Suspendable, Disposable, ThreadSafe

This test class is used to test the AbstractComponent facilities for you.

Version:
CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:27 $
Author:
Avalon Development Team

Constructor Summary
FullLifecycleComponent()
          Deprecated.  
 
Method Summary
 void configure(Configuration config)
          Deprecated. Pass the Configuration to the Configurable class.
 void contextualize(Context context)
          Deprecated. Pass the Context to the component.
 void dispose()
          Deprecated. The dispose operation is called at the end of a components lifecycle.
 void enableLogging(Logger logger)
          Deprecated. Provide component with a logger.
 void initialize()
          Deprecated. Initialize the component.
 void parameterize(Parameters params)
          Deprecated. Provide component with parameters.
 void resume()
          Deprecated. Resumes the component.
 void service(ServiceManager manager)
          Deprecated. Pass the ServiceManager to the Serviceable.
 void start()
          Deprecated. Starts the component.
 void stop()
          Deprecated. Stops the component.
 void suspend()
          Deprecated. Suspends the component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FullLifecycleComponent

public FullLifecycleComponent()
Deprecated. 
Method Detail

enableLogging

public void enableLogging(Logger logger)
Deprecated. 
Description copied from interface: LogEnabled
Provide component with a logger.

Specified by:
enableLogging in interface LogEnabled
Parameters:
logger - the logger. Must not be null.

contextualize

public void contextualize(Context context)
                   throws ContextException
Deprecated. 
Description copied from interface: Contextualizable
Pass the Context to the component. This method is called after the LogEnabled.enableLogging( Logger ) (if present) method and before any other method.

Specified by:
contextualize in interface Contextualizable
Parameters:
context - the context. Must not be null.
Throws:
ContextException - if context is invalid

parameterize

public void parameterize(Parameters params)
                  throws ParameterException
Deprecated. 
Description copied from interface: Parameterizable
Provide component with parameters.

Specified by:
parameterize in interface Parameterizable
Parameters:
params - the parameters. Must not be null.
Throws:
ParameterException - if parameters are invalid

configure

public void configure(Configuration config)
               throws ConfigurationException
Deprecated. 
Description copied from interface: Configurable
Pass the Configuration to the Configurable class.

Specified by:
configure in interface Configurable
Parameters:
config - the class configurations. Must not be null.
Throws:
ConfigurationException - if an error occurs

service

public void service(ServiceManager manager)
             throws ServiceException
Deprecated. 
Description copied from interface: Serviceable
Pass the ServiceManager to the Serviceable. The Serviceable implementation should use the specified ServiceManager to acquire the components it needs for execution.

Specified by:
service in interface Serviceable
Parameters:
manager - The ServiceManager which this Serviceable uses. Must not be null.
Throws:
ServiceException - if an error occurs

initialize

public void initialize()
                throws java.lang.Exception
Deprecated. 
Description copied from interface: Initializable
Initialize the component. Initialization includes allocating any resources required throughout the component's lifecycle.

Specified by:
initialize in interface Initializable
Throws:
java.lang.Exception - if an error occurs

start

public void start()
           throws java.lang.Exception
Deprecated. 
Description copied from interface: Startable
Starts the component.

Specified by:
start in interface Startable
Throws:
java.lang.Exception - if Component can not be started

suspend

public void suspend()
Deprecated. 
Description copied from interface: Suspendable
Suspends the component.

Specified by:
suspend in interface Suspendable

resume

public void resume()
Deprecated. 
Description copied from interface: Suspendable
Resumes the component.

Specified by:
resume in interface Suspendable

stop

public void stop()
          throws java.lang.Exception
Deprecated. 
Description copied from interface: Startable
Stops the component.

Specified by:
stop in interface Startable
Throws:
java.lang.Exception - if the Component can not be Stopped.

dispose

public void dispose()
Deprecated. 
Description copied from interface: Disposable
The dispose operation is called at the end of a components lifecycle. This method will be called after Startable.stop() method (if implemented by component). Components use this method to release and destroy any resources that the Component owns.

Specified by:
dispose in interface Disposable


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.