Class LifeCycle
java.lang.Object
org.gatein.pc.portlet.impl.container.LifeCycle
- All Implemented Interfaces:
ManagedObject
- Direct Known Subclasses:
PortletApplicationLifeCycle,PortletContainerLifeCycle,PortletFilterLifeCycle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidReturns the last known failure when the managed object attempted a transition, otherwise return null.protected abstract ManagedObjectRegistryEventListenerfinal LifeCycleStatusReturns the current managed object status.protected abstract voidprotected abstract voidprotected abstract voidprotected abstract voidfinal voidDestroy the managed object, same as callingdemote(LifeCycleStatus.INITIALIZED).final voidAttempt to start the managed object, same as callingpromote(LifeCycleStatus.STARTED).protected void
-
Constructor Details
-
LifeCycle
public LifeCycle()
-
-
Method Details
-
getStatus
Description copied from interface:ManagedObjectReturns the current managed object status.- Specified by:
getStatusin interfaceManagedObject- Returns:
- the status
-
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
Description 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
-
demoteDependents
-
invokeCreate
- Throws:
Exception
-
invokeStart
- Throws:
Exception
-
invokeStop
protected abstract void invokeStop() -
invokeDestroy
- Throws:
Exception
-
getListener
-