public abstract class AbstractLifecycleHandler extends java.lang.Object implements LifecycleHandler
Modifier and Type | Field and Description |
---|---|
private java.util.List |
beginSegment |
private java.util.List |
endSegment |
Constructor and Description |
---|
AbstractLifecycleHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addBeginSegment(Phase phase) |
void |
addEndSegment(Phase phase) |
void |
end(java.lang.Object component,
ComponentManager manager)
Deprecated.
|
void |
end(java.lang.Object component,
ComponentManager manager,
org.codehaus.plexus.classworlds.realm.ClassRealm contextRealm)
End a component's lifecycle.
|
java.util.List |
getBeginSegment() |
java.util.List |
getEndSegment() |
private boolean |
segmentIsEmpty(java.util.List segment) |
void |
start(java.lang.Object component,
ComponentManager manager)
Deprecated.
|
void |
start(java.lang.Object component,
ComponentManager manager,
org.codehaus.plexus.classworlds.realm.ClassRealm realm)
Start a component's lifecycle.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, initialize
private java.util.List beginSegment
private java.util.List endSegment
public void addBeginSegment(Phase phase)
addBeginSegment
in interface LifecycleHandler
phase
- Phase
public java.util.List getBeginSegment()
public void addEndSegment(Phase phase)
addEndSegment
in interface LifecycleHandler
phase
- Phase
public java.util.List getEndSegment()
public void start(java.lang.Object component, ComponentManager manager) throws PhaseExecutionException
start
in interface LifecycleHandler
component
- The component.manager
- The ComponentManager
PhaseExecutionException
- in case of an error.public void start(java.lang.Object component, ComponentManager manager, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws PhaseExecutionException
start
in interface LifecycleHandler
component
- The component.manager
- The ComponentManager
realm
- The ClassRealm
.PhaseExecutionException
- in case of an error.public void end(java.lang.Object component, ComponentManager manager) throws PhaseExecutionException
end
in interface LifecycleHandler
component
- The component.manager
- The ComponentManager
PhaseExecutionException
- in case of an error.public void end(java.lang.Object component, ComponentManager manager, org.codehaus.plexus.classworlds.realm.ClassRealm contextRealm) throws PhaseExecutionException
end
in interface LifecycleHandler
component
- The component.manager
- The ComponentManager
contextRealm
- 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.PhaseExecutionException
- in case of an error.private boolean segmentIsEmpty(java.util.List segment)