Interface ManagedObject
- All Known Subinterfaces:
ManagedPortletApplication, ManagedPortletContainer, ManagedPortletFilter
- All Known Implementing Classes:
LifeCycle, PortletApplicationLifeCycle, PortletContainerLifeCycle, PortletFilterLifeCycle
public interface ManagedObject
-
Method Summary
Modifier and TypeMethodDescriptionReturns the last known failure when the managed object attempted a transition, otherwise return null.Returns the current managed object status.voidDestroy the managed object, same as callingdemote(LifeCycleStatus.INITIALIZED).voidAttempt to start the managed object, same as callingpromote(LifeCycleStatus.STARTED).
-
Method Details
-
getStatus
-
getFailure
Throwable getFailure()Returns the last known failure when the managed object attempted a transition, otherwise return null.- Returns:
- the failure
-
managedStart
Attempt to start the managed object, same as callingpromote(LifeCycleStatus.STARTED).- Throws:
IllegalStateException- when reentrency is detected
-
managedDestroy
Destroy the managed object, same as callingdemote(LifeCycleStatus.INITIALIZED).- Throws:
IllegalStateException- when reentrency is detected
-