public final class JavaEE5LifecycleStrategy extends AbstractMonitoringLifecycleStrategy
| Constructor and Description |
|---|
JavaEE5LifecycleStrategy(ComponentMonitor monitor)
Construct a JavaEE5LifecycleStrategy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose(Object component)
Invoke the "dispose" method on the component instance if this is disposable.
|
boolean |
hasLifecycle(Class<?> type)
Test if a component instance has a lifecycle.
|
void |
start(Object component)
Invoke the "start" method on the component instance if this is startable.
|
void |
stop(Object component)
Invoke the "stop" method on the component instance if this is stoppable.
|
changeMonitor, currentMonitor, isLazypublic JavaEE5LifecycleStrategy(ComponentMonitor monitor)
monitor - the monitor to useNullPointerException - if the monitor is nullpublic void start(Object component)
component - the instance of the component to startpublic void stop(Object component)
component - the instance of the component to stoppublic void dispose(Object component)
component - the instance of the component to disposepublic boolean hasLifecycle(Class<?> type)
type - the component's typetrue if the component has a lifecycleCopyright © 2003-2014 Codehaus. All Rights Reserved.