Package org.jboss.msc.service

The service container implementation itself. The service container is what coordinates the registry of services and manages their installation and execution. To create a service container, see ServiceContainer.Factory.create(). To create services, implement the Service interface.

Individual service instances are controlled using the ServiceController interface. Service controllers follow this strict internal state machine (separated into two views for better illustration).

First view shows substates and tasks executed on every transition from one substate to another. Listener tasks are executed as last on every transition. State machine transition tasks

Second view shows substates and conditions between them causing transition from one substate to another. The variables are what determine when a transition may occur; any time a variable is changed, the conditions are checked to see if a transition can occur.

State machine transition conditions

Where mode variable may hold one of possible controller mode values.