|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.excalibur.testcase.FullLifecycleComponent
This test class is used to test the AbstractComponent facilities for you.
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 |
public FullLifecycleComponent()
Method Detail |
public void enableLogging(Logger logger)
LogEnabled
enableLogging
in interface LogEnabled
logger
- the logger. Must not be null
.public void contextualize(Context context) throws ContextException
Contextualizable
contextualize
in interface Contextualizable
context
- the context. Must not be null
.
ContextException
- if context is invalidpublic void parameterize(Parameters params) throws ParameterException
Parameterizable
parameterize
in interface Parameterizable
params
- the parameters. Must not be null
.
ParameterException
- if parameters are invalidpublic void configure(Configuration config) throws ConfigurationException
Configurable
Configuration
to the Configurable
class.
configure
in interface Configurable
config
- the class configurations. Must not be null
.
ConfigurationException
- if an error occurspublic void service(ServiceManager manager) throws ServiceException
Serviceable
ServiceManager
to the Serviceable
.
The Serviceable
implementation should use the specified
ServiceManager
to acquire the components it needs for
execution.
service
in interface Serviceable
manager
- The ServiceManager
which this
Serviceable
uses. Must not be null
.
ServiceException
- if an error occurspublic void initialize() throws java.lang.Exception
Initializable
initialize
in interface Initializable
java.lang.Exception
- if an error occurspublic void start() throws java.lang.Exception
Startable
start
in interface Startable
java.lang.Exception
- if Component can not be startedpublic void suspend()
Suspendable
suspend
in interface Suspendable
public void resume()
Suspendable
resume
in interface Suspendable
public void stop() throws java.lang.Exception
Startable
stop
in interface Startable
java.lang.Exception
- if the Component can not be Stopped.public void dispose()
Disposable
dispose
in interface Disposable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |