|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.picocontainer.lifecycle.AbstractMonitoringLifecycleStrategy org.picocontainer.lifecycle.JavaEE5LifecycleStrategy
public final class JavaEE5LifecycleStrategy
Java EE 5 has some annotations PreDestroy and PostConstruct that map to start() and dispose() in our world
Constructor Summary | |
---|---|
JavaEE5LifecycleStrategy(ComponentMonitor monitor)
Construct a JavaEE5LifecycleStrategy. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.picocontainer.lifecycle.AbstractMonitoringLifecycleStrategy |
---|
changeMonitor, currentMonitor, isLazy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaEE5LifecycleStrategy(ComponentMonitor monitor)
monitor
- the monitor to use
NullPointerException
- if the monitor is null
Method Detail |
---|
public 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 type
true
if the component has a lifecycle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |