Package org.apache.felix.dm
Enum ComponentState
- All Implemented Interfaces:
Serializable,Comparable<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 Summary
Enum ConstantsEnum ConstantDescriptionThe component is not currently started, and is inactive.The component is instantiated and waiting for dynamic required dependencies defined in init callback.The component has been called in its started callback.The component is starting.the component is stopped.the component is stopping.The component is started.The component is waiting for some required dependencies defined in the Activator. -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentStateReturns the enum constant of this type with the specified name.static ComponentState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INACTIVE
The component is not currently started, and is inactive. -
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
The component is instantiated and waiting for dynamic required dependencies defined in init callback. -
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
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
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
the component is stopping. At this point, the service is still registered. -
STOPPED
the component is stopped. At this point, the service has been unregistered.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-