Package org.codehaus.plexus.lifecycle
Class AbstractLifecycleHandler
java.lang.Object
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler
- All Implemented Interfaces:
LifecycleHandler
- Direct Known Subclasses:
BasicLifecycleHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBeginSegment
(Phase phase) void
addEndSegment
(Phase phase) void
end
(Object component, ComponentManager manager) Deprecated.void
end
(Object component, ComponentManager manager, org.codehaus.plexus.classworlds.realm.ClassRealm contextRealm) End a component's lifecycle.void
start
(Object component, ComponentManager manager) Deprecated.void
start
(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
-
Constructor Details
-
AbstractLifecycleHandler
public AbstractLifecycleHandler()
-
-
Method Details
-
addBeginSegment
- Specified by:
addBeginSegment
in interfaceLifecycleHandler
- Parameters:
phase
-Phase
-
getBeginSegment
-
addEndSegment
- Specified by:
addEndSegment
in interfaceLifecycleHandler
- Parameters:
phase
-Phase
-
getEndSegment
-
start
Deprecated.- Specified by:
start
in interfaceLifecycleHandler
- Parameters:
component
- The component.manager
- TheComponentManager
- Throws:
PhaseExecutionException
- in case of an error.
-
start
public void start(Object component, ComponentManager manager, org.codehaus.plexus.classworlds.realm.ClassRealm realm) throws PhaseExecutionException Start a component's lifecycle.- Specified by:
start
in interfaceLifecycleHandler
- Parameters:
component
- The component.manager
- TheComponentManager
realm
- TheClassRealm
.- Throws:
PhaseExecutionException
- in case of an error.
-
end
Deprecated.End a component's lifecycle.- Specified by:
end
in interfaceLifecycleHandler
- Parameters:
component
- The component.manager
- TheComponentManager
- Throws:
PhaseExecutionException
- in case of an error.
-
end
public void end(Object component, ComponentManager manager, org.codehaus.plexus.classworlds.realm.ClassRealm contextRealm) throws PhaseExecutionException End a component's lifecycle.- Specified by:
end
in interfaceLifecycleHandler
- Parameters:
component
- The component.manager
- TheComponentManager
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.- Throws:
PhaseExecutionException
- in case of an error.
-