Enum LifecycleState

java.lang.Object
java.lang.Enum<LifecycleState>
org.apache.catalina.LifecycleState
All Implemented Interfaces:
Serializable, Comparable<LifecycleState>, java.lang.constant.Constable

public enum LifecycleState extends Enum<LifecycleState>
The list of valid states for components that implement Lifecycle. See Lifecycle for the state transition diagram.
  • Enum Constant Details

  • Method Details

    • values

      public static LifecycleState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static LifecycleState valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • isAvailable

      public boolean isAvailable()
      May the public methods other than property getters/setters and lifecycle methods be called for a component in this state? It returns true for any component in any of the following states:
      Returns:
      true if the component is available for use, otherwise false
    • getLifecycleEvent

      public String getLifecycleEvent()