Interface ManagedObject

All Known Subinterfaces:
ManagedPortletApplication, ManagedPortletContainer, ManagedPortletFilter
All Known Implementing Classes:
LifeCycle, PortletApplicationLifeCycle, PortletContainerLifeCycle, PortletFilterLifeCycle

public interface ManagedObject
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the last known failure when the managed object attempted a transition, otherwise return null.
    Returns the current managed object status.
    void
    Destroy the managed object, same as calling demote(LifeCycleStatus.INITIALIZED).
    void
    Attempt to start the managed object, same as calling promote(LifeCycleStatus.STARTED).
  • Method Details

    • 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 IllegalStateException
      Attempt to start the managed object, same as calling promote(LifeCycleStatus.STARTED).
      Throws:
      IllegalStateException - when reentrency is detected
    • managedDestroy

      void managedDestroy() throws IllegalStateException
      Destroy the managed object, same as calling demote(LifeCycleStatus.INITIALIZED).
      Throws:
      IllegalStateException - when reentrency is detected