Package org.picocontainer.lifecycle
package org.picocontainer.lifecycle
Alternative implementations of lifecycle strategy for use with a container. Currently supported options are:
- Implement Startable and/or Disposable (or other strong interface)
- Use configuration to wire methods that are start/stop/dispose equivalent.
- J2EE 5.0 Annotation-based lifecycles.
- Combinations thereof (composite)
-
ClassDescriptionAbstract base class for lifecycle strategy implementation supporting a
ComponentMonitor
.Allow for use of alternate LifecycleStrategy strategies to be used at the same time.Bean-like implementation of LifecycleState.Java EE 5 has some annotations PreDestroy and PostConstruct that map to start() and dispose() in our worldCurrent lifecycle state of the container.Lifecycle strategy that does nothing.Subclass ofPicoException
that is thrown when there is a problem invoking lifecycle methods via reflection.Reflection lifecycle strategy.Startable lifecycle strategy.