Package org.jboss.msc.service
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.
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.
Where mode variable may hold one of possible controller mode values.
-
ClassDescriptionException used to indicate there was a circular dependency discovered during resolution.A service builder which delegates to another service builder.A delegating container for things which depend on a service container rather than a specific target or registry instance.A service controller which delegates to another service controller.A service registry which delegates to another service registry.A service target which delegates to another service target.An exception which is thrown when the given service is already registered.A context object for lifecycle events.Service lifecycle events.A listener for service lifecycle events.Service<T>Deprecated.A service activator which contributes services to a batch.Context provided to ServiceActivator instances at execution time.A simple service activator context implementation.Builder to configure service before installing it into the container.A service container which manages a set of running services.The factory class for service containers.A listener for notification of container shutdown.Container shutdown information.A controller for a single service instance.The controller mode for a service.A possible state for a service controller.Warning this class consists of generated code.Service name class.Exception which is thrown when a required service is not found in the registry.A service registry.Base Exception class used for service registry issues.The target of ServiceBuilder installations.Deprecated.Stability monitors are unreliable - do not use them.Deprecated.Stability monitors are unreliable - do not use them.The start lifecycle context.A start exception, thrown when a service fails to start.The stop lifecycle context.
Serviceinstead.