Class LifeCycle
- java.lang.Object
-
- org.gatein.pc.portlet.impl.container.LifeCycle
-
- All Implemented Interfaces:
ManagedObject
- Direct Known Subclasses:
PortletApplicationLifeCycle,PortletContainerLifeCycle,PortletFilterLifeCycle
public abstract class LifeCycle extends Object implements ManagedObject
- Version:
- $Revision: 630 $
- Author:
- Julien Viet
-
-
Constructor Summary
Constructors Constructor Description LifeCycle()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voiddemoteDependents(LifeCycleStatus to)ThrowablegetFailure()Returns the last known failure when the managed object attempted a transition, otherwise return null.protected abstract ManagedObjectRegistryEventListenergetListener()LifeCycleStatusgetStatus()Returns the current managed object status.protected abstract voidinvokeCreate()protected abstract voidinvokeDestroy()protected abstract voidinvokeStart()protected abstract voidinvokeStop()voidmanagedDestroy()Destroy the managed object, same as callingdemote(LifeCycleStatus.INITIALIZED).voidmanagedStart()Attempt to start the managed object, same as callingpromote(LifeCycleStatus.STARTED).protected voidpromoteDependents(LifeCycleStatus to)
-
-
-
Method Detail
-
getStatus
public final LifeCycleStatus getStatus()
Description copied from interface:ManagedObjectReturns the current managed object status.- Specified by:
getStatusin interfaceManagedObject- Returns:
- the status
-
getFailure
public Throwable getFailure()
Description copied from interface:ManagedObjectReturns the last known failure when the managed object attempted a transition, otherwise return null.- Specified by:
getFailurein interfaceManagedObject- Returns:
- the failure
-
managedStart
public final void managedStart() throws IllegalStateExceptionDescription copied from interface:ManagedObjectAttempt to start the managed object, same as callingpromote(LifeCycleStatus.STARTED).- Specified by:
managedStartin interfaceManagedObject- Throws:
IllegalStateException- when reentrency is detected
-
managedDestroy
public final void managedDestroy()
Description copied from interface:ManagedObjectDestroy the managed object, same as callingdemote(LifeCycleStatus.INITIALIZED).- Specified by:
managedDestroyin interfaceManagedObject
-
promoteDependents
protected void promoteDependents(LifeCycleStatus to)
-
demoteDependents
protected void demoteDependents(LifeCycleStatus to)
-
invokeStop
protected abstract void invokeStop()
-
getListener
protected abstract ManagedObjectRegistryEventListener getListener()
-
-