Enum ComponentState

java.lang.Object
java.lang.Enum<ComponentState>
org.apache.felix.dm.ComponentState
All Implemented Interfaces:
Serializable, Comparable<ComponentState>

public enum ComponentState extends Enum<ComponentState>
Component states. Any state listeners registered using @link Component.add(ComponentStateListener) method are notified with the following stated whenever the component state changes.
Author:
Felix Project Team
  • Enum Constant Details

    • INACTIVE

      public static final ComponentState INACTIVE
      The component is not currently started, and is inactive.
    • WAITING_FOR_REQUIRED

      public static final ComponentState WAITING_FOR_REQUIRED
      The component is waiting for some required dependencies defined in the Activator. At this point the component has not yet been called in its init callback.
    • INSTANTIATED_AND_WAITING_FOR_REQUIRED

      public static final ComponentState INSTANTIATED_AND_WAITING_FOR_REQUIRED
      The component is instantiated and waiting for dynamic required dependencies defined in init callback.
    • STARTING

      public static final ComponentState STARTING
      The component is starting. At this point, all required dependencies have been injected (including dynamic dependencies added from the init method), but the start callback has not yet been called and the service has not been registered yet.
    • STARTED

      public static final ComponentState STARTED
      The component has been called in its started callback. At this point, the component has not yet been registered in the service registry.
    • TRACKING_OPTIONAL

      public static final ComponentState TRACKING_OPTIONAL
      The component is started. At this point, the component:

      • has been called in its start callback
      • the optional dependency callbacks have been invoked (if some optional dependencies are available)
      • and the service has been registered
    • STOPPING

      public static final ComponentState STOPPING
      the component is stopping. At this point, the service is still registered.
    • STOPPED

      public static final ComponentState STOPPED
      the component is stopped. At this point, the service has been unregistered.
  • Method Details

    • values

      public static ComponentState[] 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 ComponentState 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