Package org.codehaus.plexus.lifecycle
Class AbstractLifecycleHandler
- java.lang.Object
-
- org.codehaus.plexus.lifecycle.AbstractLifecycleHandler
-
- All Implemented Interfaces:
LifecycleHandler
- Direct Known Subclasses:
BasicLifecycleHandler
public abstract class AbstractLifecycleHandler extends java.lang.Object implements LifecycleHandler
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ListbeginSegmentprivate java.util.ListendSegment
-
Constructor Summary
Constructors Constructor Description AbstractLifecycleHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddBeginSegment(Phase phase)voidaddEndSegment(Phase phase)voidend(java.lang.Object component, ComponentManager manager)Deprecated.voidend(java.lang.Object component, ComponentManager manager, org.codehaus.plexus.classworlds.realm.ClassRealm contextRealm)End a component's lifecycle.java.util.ListgetBeginSegment()java.util.ListgetEndSegment()private booleansegmentIsEmpty(java.util.List segment)voidstart(java.lang.Object component, ComponentManager manager)Deprecated.voidstart(java.lang.Object component, ComponentManager manager, org.codehaus.plexus.classworlds.realm.ClassRealm realm)Start a component's lifecycle.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codehaus.plexus.lifecycle.LifecycleHandler
getId, initialize
-
-
-
-
Method Detail
-
addBeginSegment
public void addBeginSegment(Phase phase)
- Specified by:
addBeginSegmentin interfaceLifecycleHandler- Parameters:
phase-Phase
-
getBeginSegment
public java.util.List getBeginSegment()
-
addEndSegment
public void addEndSegment(Phase phase)
- Specified by:
addEndSegmentin interfaceLifecycleHandler- Parameters:
phase-Phase
-
getEndSegment
public java.util.List getEndSegment()
-
start
public void start(java.lang.Object component, ComponentManager manager) throws PhaseExecutionExceptionDeprecated.- Specified by:
startin interfaceLifecycleHandler- Parameters:
component- The component.manager- TheComponentManager- Throws:
PhaseExecutionException- in case of an error.
-
start
public void start(java.lang.Object component, ComponentManager manager, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws PhaseExecutionExceptionStart a component's lifecycle.- Specified by:
startin interfaceLifecycleHandler- Parameters:
component- The component.manager- TheComponentManagerrealm- TheClassRealm.- Throws:
PhaseExecutionException- in case of an error.
-
end
public void end(java.lang.Object component, ComponentManager manager) throws PhaseExecutionExceptionDeprecated.End a component's lifecycle.- Specified by:
endin interfaceLifecycleHandler- Parameters:
component- The component.manager- TheComponentManager- Throws:
PhaseExecutionException- in case of an error.
-
end
public void end(java.lang.Object component, ComponentManager manager, org.codehaus.plexus.classworlds.realm.ClassRealm contextRealm) throws PhaseExecutionExceptionEnd a component's lifecycle.- Specified by:
endin interfaceLifecycleHandler- Parameters:
component- The component.manager- TheComponentManagercontextRealm- the realm used to create the component, which may not be the component's realm; this component could have requirements that were satisfied using components from this realm. It could be used to lookup the same manager components that were used to start the component.- Throws:
PhaseExecutionException- in case of an error.
-
segmentIsEmpty
private boolean segmentIsEmpty(java.util.List segment)
-
-