Package org.apache.xbean.kernel

Defines the kernel interface for managing services and interfaces the kernel uses to interact with the services.

See:
          Description

Interface Summary
Kernel This iterface defines the API for managing and monitoring service life-cycle.
KernelMonitor This interface defines the interface used to monitor kernel events.
ServiceCondition A ServiceContion represents a prerequsite for a service to start or stop.
ServiceConditionContext The ServiceConditionContext contains context information available to a service condition and a method to notify the kernel if a service condition is satisified asynchronously.
ServiceContext This class contains context information available to a service factory during service construction and destruction.
ServiceFactory A service factory is responsible for construction and destruction of a single service.
ServiceMonitor This interface is used to monitor service lifecycle events.
ServiceName The immutable unique name of a service.
StartStrategy The StartStrategy interface is used to assist the kernel in determining how to handle problems that occur while starting a service.
StopStrategy The StopStrategy interface is used to assist the kernel in determining how to handle problems that occur while stoping a service.
 

Class Summary
AbstractServiceFactory AbstractServiceFactory is an implementation of ServiceFactory that handles all of the mundane issues.
KernelFactory The Kernel factory is used to construct and locate Kernels.
NullServiceMonitor The NullServiceMonitor is a simple implementation of ServiceMonitor containing a noop implementaion of each callback.
RunningServiceCondition This condition that requires another service be in the RUNNING state to be satisfied.
ServiceContextThreadLocal ServiceContextThreadLocal carries the ServiceContext on the Thread during service construction and destruction.
ServiceEvent This class holds information about a service event.
ServiceState The state of services within the Kernel.
StartStrategies This class contains the built-in common start startegies.
StaticServiceFactory A basic service factory that always creates the supplied object.
StoppedServiceCondition This condition that requires another service be in the STOPPED state to be satisfied.
StopStrategies This class contains the built-in common stop startegies.
StringServiceName A simple service name containing a single String.
 

Exception Summary
ForcedStopException Signafies that a StopStrategies would like the kernel to ignore any unsatified stop conditions and continue to destroy the service.
IllegalServiceStateException Indicates an operation was called on a service in a state that does not allow that operation to be called.
InvalidServiceTypeException Indicates that the service factory returned an object from the createService method that is not an instance of every declared type.
KernelAlreadyExistsException Indicates that a kernel is already registerd with the KernelFactory under the specified name.
KernelOperationInterruptedException Signifies that a thread carrying out a kernel operation was interrupted.
KernelOperationTimoutException Signifies that a kernel operation timed out before it could be completed.
ServiceAlreadyExistsException Signifies that an attempt was made to register a service using a name that already has a service registered.
ServiceNotFoundException A service with the specified name was not found.
ServiceRegistrationException A problem occured while attempting to register or unregister an exception.
UnregisterServiceException Signafies that there was a problem starting a service and the StartStrategies would like the kernel to unregister the service.
UnsatisfiedConditionsException Signifies that there were unsatified conditions during a start or stop operation.
 

Error Summary
KernelErrorsError Groups a collection of errors from a set of work so they maybe be thrown together from the kernel.
KernelFactoryError A problem occured while creating or using the kernel factory.
 

Package org.apache.xbean.kernel Description

Defines the kernel interface for managing services and interfaces the kernel uses to interact with the services.



Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.