Interface ManagedObject
-
- All Known Subinterfaces:
ManagedPortletApplication,ManagedPortletContainer,ManagedPortletFilter
- All Known Implementing Classes:
LifeCycle,PortletApplicationLifeCycle,PortletContainerLifeCycle,PortletFilterLifeCycle
public interface ManagedObject- Version:
- $Revision: 630 $
- Author:
- Julien Viet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ThrowablegetFailure()Returns the last known failure when the managed object attempted a transition, otherwise return null.LifeCycleStatusgetStatus()Returns the current managed object status.voidmanagedDestroy()Destroy the managed object, same as callingdemote(LifeCycleStatus.INITIALIZED).voidmanagedStart()Attempt to start the managed object, same as callingpromote(LifeCycleStatus.STARTED).
-
-
-
Method Detail
-
getStatus
LifeCycleStatus getStatus()
Returns the current managed object status.- Returns:
- the status
-
getFailure
Throwable getFailure()
Returns the last known failure when the managed object attempted a transition, otherwise return null.- Returns:
- the failure
-
managedStart
void managedStart() throws IllegalStateExceptionAttempt to start the managed object, same as callingpromote(LifeCycleStatus.STARTED).- Throws:
IllegalStateException- when reentrency is detected
-
managedDestroy
void managedDestroy() throws IllegalStateExceptionDestroy the managed object, same as callingdemote(LifeCycleStatus.INITIALIZED).- Throws:
IllegalStateException- when reentrency is detected
-
-