A B C D E F G H I K L N O P R S T U W

A

ASYNCHRONOUS - Static variable in class org.apache.xbean.kernel.StartStrategies
This strategy attempts to start the service asynchronously.
ASYNCHRONOUS - Static variable in class org.apache.xbean.kernel.StopStrategies
This strategy attempts to stop the service asynchronously.
AbstractServiceFactory - class org.apache.xbean.kernel.AbstractServiceFactory.
AbstractServiceFactory is an implementation of ServiceFactory that handles all of the mundane issues.
AbstractServiceFactory() - Constructor for class org.apache.xbean.kernel.AbstractServiceFactory
 
AggregateCondition - class org.apache.xbean.kernel.standard.AggregateCondition.
Aggregates a set of ServiceConditions together so the ServiceManager can treat them as a single unit.
AggregateCondition(Kernel, ServiceName, ClassLoader, Lock, Set) - Constructor for class org.apache.xbean.kernel.standard.AggregateCondition
Creates an aggregate condition.
AsyncServiceMonitor - class org.apache.xbean.kernel.standard.AsyncServiceMonitor.
The AsyncServiceMonitor delivers service events to a delegate ServiceMonitor asynchronously using an executor.
AsyncServiceMonitor(ServiceMonitor, Executor) - Constructor for class org.apache.xbean.kernel.standard.AsyncServiceMonitor
Creates a AsyncServiceMonitor which asynchronously delivers service events to specified delegate ServiceMonitor using the specified executor.
addCondition(ServiceCondition) - Method in class org.apache.xbean.kernel.standard.AggregateCondition
Adds a new condition if not already registered.
addKernelMonitor(KernelMonitor) - Method in interface org.apache.xbean.kernel.Kernel
Adds a kernel monitor.
addKernelMonitor(KernelMonitor) - Method in class org.apache.xbean.kernel.standard.KernelMonitorBroadcaster
Adds a kernel monitor.
addKernelMonitor(KernelMonitor) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Adds a kernel monitor.
addServiceMonitor(ServiceMonitor) - Method in interface org.apache.xbean.kernel.Kernel
Adds a service monitor for all services registered with the kernel.
addServiceMonitor(ServiceMonitor, ServiceName) - Method in interface org.apache.xbean.kernel.Kernel
Adds a service monitor for a specific service.
addServiceMonitor(ServiceMonitor, ServiceName) - Method in class org.apache.xbean.kernel.standard.ServiceMonitorBroadcaster
Adds a service monitor for a specific service, or if the specified service name is null, a global monitor.
addServiceMonitor(ServiceMonitor) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Adds a service monitor for all services registered with the kernel. This method is equivalent to:

     addServiceMonitor(serviceMonitor, null);
 

Note: the order in which service monitors are notified is not specified.

addServiceMonitor(ServiceMonitor, ServiceName) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Adds a service monitor for a specific service.

Note: the order in which service monitors are notified is not specified.

addStartCondition(ServiceCondition) - Method in class org.apache.xbean.kernel.AbstractServiceFactory
Adds start condition to this service.
addStartCondition(ServiceCondition) - Method in interface org.apache.xbean.kernel.ServiceFactory
Adds start condition to this service.
addStopCondition(ServiceCondition) - Method in class org.apache.xbean.kernel.AbstractServiceFactory
Adds stop condition to this service.
addStopCondition(ServiceCondition) - Method in interface org.apache.xbean.kernel.ServiceFactory
Adds stop condition to this service.
awaitSatisfaction() - Method in class org.apache.xbean.kernel.standard.AggregateCondition
Causes the current thread to wait until the conditons is satisfied.

B

BLOCK - Static variable in class org.apache.xbean.kernel.StartStrategies
This strategy wait until the service start.
BLOCK - Static variable in class org.apache.xbean.kernel.StopStrategies
This strategy wait until the service stops.

C

compareTo(Object) - Method in class org.apache.xbean.kernel.standard.ServiceManager
 
createKernel(String) - Method in class org.apache.xbean.kernel.KernelFactory
Creates a new kernel instance and registers it with the static KernelFactory registry.
createKernelInternal(String) - Method in class org.apache.xbean.kernel.KernelFactory
Creates the actual kernel instance which will be registerd in the KernelFactory.
createKernelInternal(String) - Method in class org.apache.xbean.kernel.standard.StandardKernelFactory
Creates the actual kernel instance which will be registerd in the KernelFactory.
createService(ServiceContext) - Method in interface org.apache.xbean.kernel.ServiceFactory
Creates the service instance.
createService(ServiceContext) - Method in class org.apache.xbean.kernel.StaticServiceFactory
Returns the static service instance.
createServiceManager(long, ServiceName, ServiceFactory, ClassLoader) - Method in class org.apache.xbean.kernel.standard.ServiceManagerFactory
Creates a ServiceManager.

D

destroy() - Method in interface org.apache.xbean.kernel.Kernel
Destroys this kernel.
destroy() - Method in class org.apache.xbean.kernel.RunningServiceCondition
Destroys the condition. The condition must release all resources and stop any started threads.

Note: this method is called from within a critical lock within the kernel, so do not block the thread or call back into the kernel. This method should never throw an exception.
destroy() - Method in interface org.apache.xbean.kernel.ServiceCondition
Destroys the condition.
destroy() - Method in class org.apache.xbean.kernel.StoppedServiceCondition
Destroys the condition. The condition must release all resources and stop any started threads.

Note: this method is called from within a critical lock within the kernel, so do not block the thread or call back into the kernel. This method should never throw an exception.
destroy() - Method in class org.apache.xbean.kernel.standard.AggregateCondition
Destroys all condtions.
destroy(StopStrategy) - Method in class org.apache.xbean.kernel.standard.ServiceManager
Attempts to stop and destroy the service.
destroy() - Method in class org.apache.xbean.kernel.standard.ServiceManagerRegistry
Stops and destroys all services service managers.
destroy() - Method in class org.apache.xbean.kernel.standard.StandardKernel
Destroys this kernel. This method causes all services to be stopped and unregistered.
destroyInstance(Kernel) - Static method in class org.apache.xbean.kernel.KernelFactory
Removes the kernel instance from the internal kernel registry.
destroyService(ServiceContext) - Method in interface org.apache.xbean.kernel.ServiceFactory
Destroys the service instance.
destroyService(ServiceContext) - Method in class org.apache.xbean.kernel.StaticServiceFactory
This method is a noop.

E

equals(Object) - Method in interface org.apache.xbean.kernel.ServiceName
A service name must property implement equals.
equals(Object) - Method in class org.apache.xbean.kernel.StringServiceName
 
equals(Object) - Method in class org.apache.xbean.kernel.standard.ServiceManager
 

F

FORCE - Static variable in class org.apache.xbean.kernel.StopStrategies
This strategy forceable stops the service.
ForcedStopException - exception org.apache.xbean.kernel.ForcedStopException.
Signafies that a StopStrategies would like the kernel to ignore any unsatified stop conditions and continue to destroy the service.
ForcedStopException(ServiceName, Set) - Constructor for class org.apache.xbean.kernel.ForcedStopException
Creates a ForcedStopException for the specified service name.

G

get() - Static method in class org.apache.xbean.kernel.ServiceContextThreadLocal
Gets the ServiceContext associated with the current thread.
getCause() - Method in class org.apache.xbean.kernel.ServiceEvent
Gets the error that was thrown during startup or shutdown.
getClassAnnotation(Class) - Method in class org.apache.xbean.rmi.RMIClassLoaderSpiImpl
 
getClassLoader() - Method in interface org.apache.xbean.kernel.ServiceConditionContext
Gets the class loader for the service.
getClassLoader() - Method in interface org.apache.xbean.kernel.ServiceContext
Gets the class loader for this service.
getClassLoader() - Method in class org.apache.xbean.kernel.ServiceEvent
Gets the class loader for the service.
getClassLoader() - Method in class org.apache.xbean.kernel.standard.ServiceManager
Gets the class loader for this service.
getClassLoader() - Method in class org.apache.xbean.kernel.standard.StandardServiceConditionContext
Gets the class loader for the service.
getClassLoader() - Method in class org.apache.xbean.kernel.standard.StandardServiceContext
Gets the class loader for this service.
getClassLoader(String) - Method in class org.apache.xbean.rmi.RMIClassLoaderSpiImpl
 
getClassLoaderFor(ServiceName) - Method in interface org.apache.xbean.kernel.Kernel
Gets the class loader associated with the specifed service.
getClassLoaderFor(ServiceName) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Gets the class loader associated with the specifed service.
getClassLoaderServerURLs() - Method in interface org.apache.xbean.rmi.RMIClassLoaderSpiImpl.ClassLoaderServerAware
 
getConditions() - Method in class org.apache.xbean.kernel.standard.AggregateCondition
Gets a snapshot of the current conditions.
getErrors() - Method in class org.apache.xbean.kernel.KernelErrorsError
Gets the errors that casued this error.
getEventId() - Method in class org.apache.xbean.kernel.ServiceEvent
Gets the sequence number for this event.
getExpectedType() - Method in class org.apache.xbean.kernel.InvalidServiceTypeException
Gets the type that was expected.
getIndex() - Method in class org.apache.xbean.kernel.ServiceState
Gets the unique index of this state.
getKernel(String) - Static method in class org.apache.xbean.kernel.KernelFactory
Gets the kernel registered under the specified name.
getKernel() - Method in interface org.apache.xbean.kernel.ServiceConditionContext
Gets the kernel in which the service is registered.
getKernel() - Method in interface org.apache.xbean.kernel.ServiceContext
Gets the kernel in which this service is registered.
getKernel() - Method in class org.apache.xbean.kernel.ServiceEvent
Gets the kernel in which the service is registered.
getKernel() - Method in class org.apache.xbean.kernel.standard.StandardServiceConditionContext
Gets the kernel in which the service is registered.
getKernel() - Method in class org.apache.xbean.kernel.standard.StandardServiceContext
Gets the kernel in which this service is registered.
getKernelName() - Method in interface org.apache.xbean.kernel.Kernel
Gets the unique name of this kernel within the KernelFactory.
getKernelName() - Method in class org.apache.xbean.kernel.standard.StandardKernel
Gets the unique name of this kernel within the KernelFactory.
getKernels() - Static method in class org.apache.xbean.kernel.KernelFactory
Gets a map of the existing kernels by kernel name.
getLocalizedMessage() - Method in class org.apache.xbean.kernel.KernelErrorsError
 
getMessage() - Method in class org.apache.xbean.kernel.KernelErrorsError
 
getName() - Method in class org.apache.xbean.kernel.KernelAlreadyExistsException
Gets the name of the kernel that already existed.
getName() - Method in class org.apache.xbean.kernel.ServiceState
The unique name of this state.
getOperationName() - Method in class org.apache.xbean.kernel.KernelOperationInterruptedException
Gets the name of the operation that was interrupted.
getOperationName() - Method in class org.apache.xbean.kernel.KernelOperationTimoutException
Gets the name of the operation that timed out.
getOwnedServices() - Method in interface org.apache.xbean.kernel.ServiceFactory
Gets the names of services owned by this service.
getOwnedServices() - Method in class org.apache.xbean.kernel.StaticServiceFactory
Gets the names of services owned by this service. This information is used for the startRecursive method on the kernel. When a servcie is started with startRecursive all owned services will be started with startRecursive.
getService(ServiceName) - Method in interface org.apache.xbean.kernel.Kernel
Gets the service registered under the specified name.
getService(Class) - Method in interface org.apache.xbean.kernel.Kernel
Gets the first running service registered with the kernel that is an instance of the specified type.
getService() - Method in class org.apache.xbean.kernel.ServiceEvent
Gets the service instance or null if the service doesn't exist.
getService() - Method in class org.apache.xbean.kernel.standard.ServiceManager
Gets the service instance.
getService(Class) - Method in class org.apache.xbean.kernel.standard.ServiceManagerRegistry
Gets the first registed and running service that is an instance of the specified type, or null if no instances of the specified type are running.
getService(ServiceName) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Gets the service registered under the specified name. If the service is not in the RUNNING, or STARTING state this method will throw an IllegalArgumentException.
getService(Class) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Gets the first running service registered with the kernel that is an instance of the specified type. If no running services are instances of the specified type, null is returned.
getServiceFactories(Class) - Method in interface org.apache.xbean.kernel.Kernel
Gets the all of the service factories registered with the kernel that create an instances of the specified type.
getServiceFactories(Class) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Gets the all of the service factories registered with the kernel that create an instances of the specified type. If no service factories create an instance of the specified type, an empty list is returned.
getServiceFactory(ServiceName) - Method in interface org.apache.xbean.kernel.Kernel
Gets the service factory registered under the specified name.
getServiceFactory(Class) - Method in interface org.apache.xbean.kernel.Kernel
Gets the first service factory registered with the kernel that creates an instance of the specified type.
getServiceFactory() - Method in class org.apache.xbean.kernel.ServiceEvent
Gets the service factory for the service.
getServiceFactory() - Method in class org.apache.xbean.kernel.standard.ServiceManager
Gets the factory used to create and destroy the service instance.
getServiceFactory(ServiceName) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Gets the service factory registered under the specified name.
getServiceFactory(Class) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Gets the first service factory registered with the kernel that creates an instance of the specified type. If no service factories create an instance of the specified type, null is returned.
getServiceId() - Method in class org.apache.xbean.kernel.standard.ServiceManager
Gets the unique id of this service in the kernel.
getServiceManager(ServiceName) - Method in class org.apache.xbean.kernel.standard.ServiceManagerRegistry
Gets the service manager registered under the specified name.
getServiceManager(Class) - Method in class org.apache.xbean.kernel.standard.ServiceManagerRegistry
Gets the first registered service manager that creates an instance of the specified type, or null if no service managers create an instance of the specified type.
getServiceManagers(Class) - Method in class org.apache.xbean.kernel.standard.ServiceManagerRegistry
Gets all service managers that create an instances of the specified type, or an empty list if no service managers create an instance of the specified type.
getServiceName() - Method in class org.apache.xbean.kernel.ForcedStopException
Gets the name of the service that is to be forceably stopped.
getServiceName() - Method in class org.apache.xbean.kernel.IllegalServiceStateException
Gets the name of the service that caused this exception.
getServiceName() - Method in class org.apache.xbean.kernel.InvalidServiceTypeException
Gets the name of the service that returned an object of the wrong type.
getServiceName() - Method in class org.apache.xbean.kernel.KernelOperationInterruptedException
Gets the name of the service for which the operation was interrupted.
getServiceName() - Method in class org.apache.xbean.kernel.KernelOperationTimoutException
Gets the name of the service for which the operation timed out.
getServiceName() - Method in class org.apache.xbean.kernel.ServiceAlreadyExistsException
Gets the name of the service that caused this exception.
getServiceName() - Method in interface org.apache.xbean.kernel.ServiceConditionContext
Gets the unique name of the service.
getServiceName() - Method in interface org.apache.xbean.kernel.ServiceContext
Gets the unique name of the service in the kernel.
getServiceName() - Method in class org.apache.xbean.kernel.ServiceEvent
Gets the name of the service.
getServiceName() - Method in class org.apache.xbean.kernel.ServiceNotFoundException
Gets the name of the service that was not found.
getServiceName() - Method in class org.apache.xbean.kernel.ServiceRegistrationException
Gets the name of the service that had a registration problem.
getServiceName() - Method in class org.apache.xbean.kernel.UnregisterServiceException
Gets the name of the service that is to be unregistered.
getServiceName() - Method in class org.apache.xbean.kernel.UnsatisfiedConditionsException
Gets the name of the service that has unsatisfied conditions.
getServiceName() - Method in class org.apache.xbean.kernel.standard.ServiceManager
Gets the unique name of this service in the kernel.
getServiceName() - Method in class org.apache.xbean.kernel.standard.StandardServiceConditionContext
Gets the unique name of the service.
getServiceName() - Method in class org.apache.xbean.kernel.standard.StandardServiceContext
Gets the unique name of the service in the kernel.
getServiceStartTime(ServiceName) - Method in interface org.apache.xbean.kernel.Kernel
Gets the time the specified service entered the RUNNING state since the epoch (January 1, 1970, 00:00:00) in milliseconds.
getServiceStartTime(ServiceName) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Gets the time the specified service entered the RUNNING state since the epoch (January 1, 1970, 00:00:00) in milliseconds. If the service is in the STOPPED or STARTING states, this method will return 0.
getServiceState(ServiceName) - Method in interface org.apache.xbean.kernel.Kernel
Gets the ServiceState of the specified service.
getServiceState(int) - Static method in class org.apache.xbean.kernel.ServiceState
Converts the state index into corresponding state name.
getServiceState(ServiceName) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Gets the ServiceState of the specified service. If the service is not restartable, this method will always return RUNNING.
getServiceType() - Method in class org.apache.xbean.kernel.InvalidServiceTypeException
Gets the actual type of the service returned from the factory.
getServiceTypes() - Method in class org.apache.xbean.kernel.standard.ServiceManager
Gets the types of the service that will be managed by this service manager.
getServices(Class) - Method in interface org.apache.xbean.kernel.Kernel
Gets the all of running service registered with the kernel that are an instances of the specified type.
getServices(Class) - Method in class org.apache.xbean.kernel.standard.ServiceManagerRegistry
Gets the all of running service that are an instances of the specified type, or an empty list if no instances of the specified type are running.
getServices(Class) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Gets the all of running service registered with the kernel that are an instances of the specified type. If no running services are instances of the specified type, an empty list is returned
getStartConditions() - Method in class org.apache.xbean.kernel.AbstractServiceFactory
Get an unmodifable snapshot of the conditions that must be satisfied before this service can be started.
getStartConditions() - Method in interface org.apache.xbean.kernel.ServiceFactory
Get an unmodifable snapshot of the conditions that must be satisfied before this service can be started.
getStartTime() - Method in class org.apache.xbean.kernel.standard.ServiceManager
Gets the time at which this service entered the STARTING state or 0 if the service is STOPPED.
getState() - Method in class org.apache.xbean.kernel.standard.ServiceManager
Gets the current state of this service.
getStopConditions() - Method in class org.apache.xbean.kernel.AbstractServiceFactory
Get an unmodifable snapshot of the conditions that must be satisfied before this service can be stopped.
getStopConditions() - Method in interface org.apache.xbean.kernel.ServiceFactory
Get an unmodifable snapshot of the conditions that must be satisfied before this service can be stopped.
getTypes() - Method in interface org.apache.xbean.kernel.ServiceFactory
Gets the types of the service this service factory will create.
getTypes() - Method in class org.apache.xbean.kernel.StaticServiceFactory
 
getUnsatisfied() - Method in class org.apache.xbean.kernel.standard.AggregateCondition
Gets the unsatisfied conditions.
getUnsatisfied() - Method in class org.apache.xbean.kernel.standard.NonRestartableStopCondition
Gets the unsatisfied conditions.
getUnsatisfiedConditions() - Method in class org.apache.xbean.kernel.ForcedStopException
Gets the conditions that were unsatified when the exception was thrown.
getUnsatisfiedConditions() - Method in class org.apache.xbean.kernel.ServiceEvent
Gets the unsatified dependencies that cause the service to wait.
getUnsatisfiedConditions() - Method in class org.apache.xbean.kernel.UnsatisfiedConditionsException
Gets the conditions that were unsatified when the exception was thrown.

H

hashCode() - Method in interface org.apache.xbean.kernel.ServiceName
A service name must properly implement hashCode.
hashCode() - Method in class org.apache.xbean.kernel.StringServiceName
 
hashCode() - Method in class org.apache.xbean.kernel.standard.ServiceManager
 

I

IllegalServiceStateException - exception org.apache.xbean.kernel.IllegalServiceStateException.
Indicates an operation was called on a service in a state that does not allow that operation to be called.
IllegalServiceStateException(String, ServiceName) - Constructor for class org.apache.xbean.kernel.IllegalServiceStateException
Creates an IllegalServiceStateException.
InvalidServiceTypeException - exception org.apache.xbean.kernel.InvalidServiceTypeException.
Indicates that the service factory returned an object from the createService method that is not an instance of every declared type.
InvalidServiceTypeException(ServiceName, Class, Class) - Constructor for class org.apache.xbean.kernel.InvalidServiceTypeException
Creates an InvalidServiceType caused by the service with the specified name, which returned an object from the createService method of the specified type that is not an instance of the expected type.
initialize(ServiceConditionContext) - Method in class org.apache.xbean.kernel.RunningServiceCondition
Initializes the condition. The conition is now allowed reserve unique resources and start threads. mehtod should never block the thread nor should it throw any exceptions.

Note: this method is called from within a critical lock within the kernel, so do not block the thread or call back into the kernel. This method should never throw an exception.
initialize(ServiceConditionContext) - Method in interface org.apache.xbean.kernel.ServiceCondition
Initializes the condition.
initialize(ServiceConditionContext) - Method in class org.apache.xbean.kernel.StoppedServiceCondition
Initializes the condition. The conition is now allowed reserve unique resources and start threads. mehtod should never block the thread nor should it throw any exceptions.

Note: this method is called from within a critical lock within the kernel, so do not block the thread or call back into the kernel. This method should never throw an exception.
initialize() - Method in class org.apache.xbean.kernel.standard.AggregateCondition
Initializes the conditions.
initialize() - Method in class org.apache.xbean.kernel.standard.NonRestartableStopCondition
Throws UnsupportedOperationException.
initialize() - Method in class org.apache.xbean.kernel.standard.ServiceManager
Initializes the service.
isDestroyed() - Method in class org.apache.xbean.kernel.standard.AggregateCondition
Gets the destroyed status.
isEnabled() - Method in class org.apache.xbean.kernel.AbstractServiceFactory
Determines if the service can be instantiated in a kernel. A disabled restartable service can not be started and a disabled non-restartable service can not be loaded into a kernel.
isEnabled() - Method in interface org.apache.xbean.kernel.ServiceFactory
Determines if the service can be instantiated in a kernel.
isRegistered(ServiceName) - Method in interface org.apache.xbean.kernel.Kernel
Determines if there is a service registered under the specified name.
isRegistered(ServiceName) - Method in class org.apache.xbean.kernel.standard.ServiceManagerRegistry
Determines if there is a service registered under the specified name.
isRegistered(ServiceName) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Determines if there is a service registered under the specified name.
isRestartable() - Method in interface org.apache.xbean.kernel.ServiceFactory
A restartable service can be started and stopped repeatedly in the kernel.
isRestartable() - Method in class org.apache.xbean.kernel.StaticServiceFactory
A restartable service can be started and stopped repeatedly in the kernel. A service that is not restartable immediately enters the RUNNING state when registered with the kernel, and can not be started or stopped.
isRunning() - Method in interface org.apache.xbean.kernel.Kernel
Gets the running status of the kernel.
isRunning() - Method in class org.apache.xbean.kernel.standard.StandardKernel
Gets the running status of the kernel. Services can not be registered or started on a stopped kernel.
isSatisfied() - Method in class org.apache.xbean.kernel.RunningServiceCondition
Gets statisfied state of this conditon. Once a condition returns true from this method it is assumed to be satisfied until destroyed and reinitialized.

Note: this method is called from within a critical lock within the kernel, so do not block the thread or call back into the kernel. This method should never throw an exception.
isSatisfied() - Method in interface org.apache.xbean.kernel.ServiceCondition
Gets statisfied state of this conditon.
isSatisfied() - Method in class org.apache.xbean.kernel.StoppedServiceCondition
Gets statisfied state of this conditon. Once a condition returns true from this method it is assumed to be satisfied until destroyed and reinitialized.

Note: this method is called from within a critical lock within the kernel, so do not block the thread or call back into the kernel. This method should never throw an exception.
isSatisfied() - Method in class org.apache.xbean.kernel.standard.StandardServiceConditionContext
Gets the satisfied status of this condition.
isServiceEnabled(ServiceName) - Method in interface org.apache.xbean.kernel.Kernel
Determines if the service can be instantiated in a kernel.
isServiceEnabled(ServiceName) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Determines if the service can be instantiated in a kernel. A disabled restartable service can not be started. This method is equivalent to:

     kernel.getServiceFactory(serviceName).isEnabled();
 


K

KERNEL_FACTORY_KEY - Static variable in class org.apache.xbean.kernel.KernelFactory
The name of the system property and META-INF/services used to locate the kernel factory class.
Kernel - interface org.apache.xbean.kernel.Kernel.
This iterface defines the API for managing and monitoring service life-cycle.
KernelAlreadyExistsException - exception org.apache.xbean.kernel.KernelAlreadyExistsException.
Indicates that a kernel is already registerd with the KernelFactory under the specified name.
KernelAlreadyExistsException(String) - Constructor for class org.apache.xbean.kernel.KernelAlreadyExistsException
Creates a KernelAlreadyExistsException using the specified name.
KernelErrorsError - error org.apache.xbean.kernel.KernelErrorsError.
Groups a collection of errors from a set of work so they maybe be thrown together from the kernel.
KernelErrorsError(List) - Constructor for class org.apache.xbean.kernel.KernelErrorsError
Creates an Errors error containing the list of errors.
KernelFactory - class org.apache.xbean.kernel.KernelFactory.
The Kernel factory is used to construct and locate Kernels.
KernelFactory() - Constructor for class org.apache.xbean.kernel.KernelFactory
 
KernelFactoryError - error org.apache.xbean.kernel.KernelFactoryError.
A problem occured while creating or using the kernel factory.
KernelFactoryError(String) - Constructor for class org.apache.xbean.kernel.KernelFactoryError
Creates a KernelFactoryError using the specified message.
KernelFactoryError(String, Throwable) - Constructor for class org.apache.xbean.kernel.KernelFactoryError
Creates a KernelFactoryError using the specified message and cause.
KernelMonitor - interface org.apache.xbean.kernel.KernelMonitor.
This interface defines the interface used to monitor kernel events.
KernelMonitorBroadcaster - class org.apache.xbean.kernel.standard.KernelMonitorBroadcaster.
The KernelMonitorBroadcaster broadcasts kernel events to registered kernel monitors.
KernelMonitorBroadcaster() - Constructor for class org.apache.xbean.kernel.standard.KernelMonitorBroadcaster
 
KernelOperationInterruptedException - exception org.apache.xbean.kernel.KernelOperationInterruptedException.
Signifies that a thread carrying out a kernel operation was interrupted.
KernelOperationInterruptedException(InterruptedException, ServiceName, String) - Constructor for class org.apache.xbean.kernel.KernelOperationInterruptedException
Created a KernelOperationInterruptedException for the specified operation on the specified service.
KernelOperationInterruptedException(String, InterruptedException, ServiceName, String) - Constructor for class org.apache.xbean.kernel.KernelOperationInterruptedException
Created a KernelOperationInterruptedException with a custom message.
KernelOperationTimoutException - exception org.apache.xbean.kernel.KernelOperationTimoutException.
Signifies that a kernel operation timed out before it could be completed.
KernelOperationTimoutException(ServiceName, String) - Constructor for class org.apache.xbean.kernel.KernelOperationTimoutException
Created a KernelOperationTimoutException for the specified operation on the specified service.
KernelOperationTimoutException(String, ServiceName, String) - Constructor for class org.apache.xbean.kernel.KernelOperationTimoutException
Created a KernelOperationTimoutException using the specified custom message.

L

loadClass(String, String, ClassLoader) - Method in class org.apache.xbean.rmi.RMIClassLoaderSpiImpl
 
loadProxyClass(String, String[], ClassLoader) - Method in class org.apache.xbean.rmi.RMIClassLoaderSpiImpl
 

N

NonRestartableStopCondition - class org.apache.xbean.kernel.standard.NonRestartableStopCondition.
A special sub-class of AggregateCondition used to manage the stop conditions of a non-restartable service.
NonRestartableStopCondition(Kernel, ServiceName, ClassLoader, Lock, ServiceFactory) - Constructor for class org.apache.xbean.kernel.standard.NonRestartableStopCondition
Creates a NonRestartableStopCondition.
NullServiceMonitor - class org.apache.xbean.kernel.NullServiceMonitor.
The NullServiceMonitor is a simple implementation of ServiceMonitor containing a noop implementaion of each callback.
NullServiceMonitor() - Constructor for class org.apache.xbean.kernel.NullServiceMonitor
 
newInstance() - Static method in class org.apache.xbean.kernel.KernelFactory
Creates a kernel with the specified name.

O

org.apache.xbean.kernel - package org.apache.xbean.kernel
Defines the kernel interface for managing services and interfaces the kernel uses to interact with the services.
org.apache.xbean.kernel.standard - package org.apache.xbean.kernel.standard
Provides the standard kernel implementation.
org.apache.xbean.rmi - package org.apache.xbean.rmi
 

P

parseServiceState(String) - Static method in class org.apache.xbean.kernel.ServiceState
Converts the state name in the corresponding state index.
printStackTrace(PrintStream) - Method in class org.apache.xbean.kernel.KernelErrorsError
 
printStackTrace(PrintWriter) - Method in class org.apache.xbean.kernel.KernelErrorsError
 

R

RMIClassLoaderSpiImpl - class org.apache.xbean.rmi.RMIClassLoaderSpiImpl.
An implementation of RMIClassLoaderSpi which provides normilzation of codebase URLs and delegates to the default RMIClassLoaderSpi.
RMIClassLoaderSpiImpl() - Constructor for class org.apache.xbean.rmi.RMIClassLoaderSpiImpl
 
RMIClassLoaderSpiImpl.ClassLoaderServerAware - interface org.apache.xbean.rmi.RMIClassLoaderSpiImpl.ClassLoaderServerAware.
 
RUNNING - Static variable in class org.apache.xbean.kernel.ServiceState
This state indicates that the service is in the normal operational state.
RunningServiceCondition - class org.apache.xbean.kernel.RunningServiceCondition.
This condition that requires another service be in the RUNNING state to be satisfied.
RunningServiceCondition(ServiceName, boolean, boolean) - Constructor for class org.apache.xbean.kernel.RunningServiceCondition
Creates a condition that requires the specified service be in the RUNNING state to be satisfied.
registerService(ServiceName, ServiceFactory, ClassLoader) - Method in interface org.apache.xbean.kernel.Kernel
Registers a service with this kernel.
registerService(ServiceName, ServiceFactory, ClassLoader) - Method in class org.apache.xbean.kernel.standard.ServiceManagerRegistry
Creates a ServiceManager and registers it under the specified name.
registerService(ServiceName, ServiceFactory, ClassLoader) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Registers a service with this kernel. If the service is restartable, it will enter the server in the STOPPED state. If a service is not restartable, the kernel will assure that all dependencies are satisfied and service will enter the kernel in the RUNNING state. If a dependency for a non-restartable service is not immediately satisfiable, this method will throw a ServiceRegistrationException.
removeCondition(ServiceCondition) - Method in class org.apache.xbean.kernel.standard.AggregateCondition
Removes a condition from the registry if present.
removeKernelMonitor(KernelMonitor) - Method in interface org.apache.xbean.kernel.Kernel
Removes a kernel monitor.
removeKernelMonitor(KernelMonitor) - Method in class org.apache.xbean.kernel.standard.KernelMonitorBroadcaster
Removes a kernel monitor.
removeKernelMonitor(KernelMonitor) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Removes a kernel monitor.
removeServiceMonitor(ServiceMonitor) - Method in interface org.apache.xbean.kernel.Kernel
Removes a service monitor.
removeServiceMonitor(ServiceMonitor) - Method in class org.apache.xbean.kernel.standard.ServiceMonitorBroadcaster
Removes a service monitor.
removeServiceMonitor(ServiceMonitor) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Removes a service monitor.
removeStartCondition(ServiceCondition) - Method in class org.apache.xbean.kernel.AbstractServiceFactory
Removes a start condition from this service.
removeStartCondition(ServiceCondition) - Method in interface org.apache.xbean.kernel.ServiceFactory
Removes a start condition from this service.
removeStopCondition(ServiceCondition) - Method in class org.apache.xbean.kernel.AbstractServiceFactory
Removes a stop condition from this service.
removeStopCondition(ServiceCondition) - Method in interface org.apache.xbean.kernel.ServiceFactory
Removes a stop condition from this service.

S

STARTING - Static variable in class org.apache.xbean.kernel.ServiceState
This state indicates that the service is attempting to start but has not fully started yet.
STOPPED - Static variable in class org.apache.xbean.kernel.ServiceState
This state indicates that the service is stopped and not operational.
STOPPING - Static variable in class org.apache.xbean.kernel.ServiceState
This state indicates that the service is attempting to stop but has not fully stopped yet.
SYNCHRONOUS - Static variable in class org.apache.xbean.kernel.StartStrategies
This strategy attempts to immedately start the service.
SYNCHRONOUS - Static variable in class org.apache.xbean.kernel.StopStrategies
This strategy attempts to immedately stop the service.
ServiceAlreadyExistsException - exception org.apache.xbean.kernel.ServiceAlreadyExistsException.
Signifies that an attempt was made to register a service using a name that already has a service registered.
ServiceAlreadyExistsException(ServiceName) - Constructor for class org.apache.xbean.kernel.ServiceAlreadyExistsException
Creates a ServiceAlreadyExistsException for the specified service name.
ServiceCondition - interface org.apache.xbean.kernel.ServiceCondition.
A ServiceContion represents a prerequsite for a service to start or stop.
ServiceConditionContext - interface org.apache.xbean.kernel.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 - interface org.apache.xbean.kernel.ServiceContext.
This class contains context information available to a service factory during service construction and destruction.
ServiceContextThreadLocal - class org.apache.xbean.kernel.ServiceContextThreadLocal.
ServiceContextThreadLocal carries the ServiceContext on the Thread during service construction and destruction.
ServiceEvent - class org.apache.xbean.kernel.ServiceEvent.
This class holds information about a service event.
ServiceEvent(long, Kernel, ServiceName, ServiceFactory, ClassLoader, Object, Throwable, Set) - Constructor for class org.apache.xbean.kernel.ServiceEvent
Creates a service event.
ServiceFactory - interface org.apache.xbean.kernel.ServiceFactory.
A service factory is responsible for construction and destruction of a single service.
ServiceManager - class org.apache.xbean.kernel.standard.ServiceManager.
The ServiceManager handles the life cycle of a single service.
ServiceManager(Kernel, long, ServiceName, ServiceFactory, ClassLoader, ServiceMonitor, long, TimeUnit) - Constructor for class org.apache.xbean.kernel.standard.ServiceManager
Creates a service manager for a single service.
ServiceManagerFactory - class org.apache.xbean.kernel.standard.ServiceManagerFactory.
The ServiceManagerFactory handles the construction ServiceManagers.
ServiceManagerFactory(Kernel, ServiceMonitorBroadcaster, Executor, long, TimeUnit) - Constructor for class org.apache.xbean.kernel.standard.ServiceManagerFactory
Creates a ServiceManagerFactory.
ServiceManagerRegistry - class org.apache.xbean.kernel.standard.ServiceManagerRegistry.
The StandardServiceRegistry manages the registration of ServiceManagers for the kernel.
ServiceManagerRegistry(ServiceManagerFactory) - Constructor for class org.apache.xbean.kernel.standard.ServiceManagerRegistry
Creates a ServiceManagerRegistry that uses the specified service manager factory to create new service managers.
ServiceMonitor - interface org.apache.xbean.kernel.ServiceMonitor.
This interface is used to monitor service lifecycle events.
ServiceMonitorBroadcaster - class org.apache.xbean.kernel.standard.ServiceMonitorBroadcaster.
The ServiceMonitorBroadcaster broadcasts kernel events to registered service monitors.
ServiceMonitorBroadcaster(KernelMonitor) - Constructor for class org.apache.xbean.kernel.standard.ServiceMonitorBroadcaster
Creates a ServiceMonitorBroadcaster that notifies the specified kernel monitor when an error occurs while notifying the registered service monitors.
ServiceName - interface org.apache.xbean.kernel.ServiceName.
The immutable unique name of a service.
ServiceNotFoundException - exception org.apache.xbean.kernel.ServiceNotFoundException.
A service with the specified name was not found.
ServiceNotFoundException(ServiceName) - Constructor for class org.apache.xbean.kernel.ServiceNotFoundException
Creates a ServiceNotFoundException for the specified service name.
ServiceRegistrationException - exception org.apache.xbean.kernel.ServiceRegistrationException.
A problem occured while attempting to register or unregister an exception.
ServiceRegistrationException(ServiceName, Throwable) - Constructor for class org.apache.xbean.kernel.ServiceRegistrationException
Creates a ServiceRegistrationException for the specified service caused by the specified Throwable.
ServiceState - class org.apache.xbean.kernel.ServiceState.
The state of services within the Kernel.
StandardKernel - class org.apache.xbean.kernel.standard.StandardKernel.
The standard kernel implementation.
StandardKernel(String) - Constructor for class org.apache.xbean.kernel.standard.StandardKernel
Creates a kernel using the specified name.
StandardKernel(String, Executor, long, TimeUnit) - Constructor for class org.apache.xbean.kernel.standard.StandardKernel
Creates a kernel using the specified name.
StandardKernelFactory - class org.apache.xbean.kernel.standard.StandardKernelFactory.
The kernel factory for StandardKernel instances.
StandardKernelFactory() - Constructor for class org.apache.xbean.kernel.standard.StandardKernelFactory
 
StandardServiceConditionContext - class org.apache.xbean.kernel.standard.StandardServiceConditionContext.
This is the service context used by the service manager.
StandardServiceConditionContext(Kernel, ServiceName, ClassLoader, Lock, Condition) - Constructor for class org.apache.xbean.kernel.standard.StandardServiceConditionContext
Creates a service context for the specified service.
StandardServiceContext - class org.apache.xbean.kernel.standard.StandardServiceContext.
The standard service context implementation.
StandardServiceContext(Kernel, ServiceName, ClassLoader) - Constructor for class org.apache.xbean.kernel.standard.StandardServiceContext
Creates the standard service context implementation.
StartStrategies - class org.apache.xbean.kernel.StartStrategies.
This class contains the built-in common start startegies.
StartStrategy - interface org.apache.xbean.kernel.StartStrategy.
The StartStrategy interface is used to assist the kernel in determining how to handle problems that occur while starting a service.
StaticServiceFactory - class org.apache.xbean.kernel.StaticServiceFactory.
A basic service factory that always creates the supplied object.
StaticServiceFactory(Object) - Constructor for class org.apache.xbean.kernel.StaticServiceFactory
Creates a non-restartable service factory which will simply returns the specified service from the createService method.
StopStrategies - class org.apache.xbean.kernel.StopStrategies.
This class contains the built-in common stop startegies.
StopStrategy - interface org.apache.xbean.kernel.StopStrategy.
The StopStrategy interface is used to assist the kernel in determining how to handle problems that occur while stoping a service.
StoppedServiceCondition - class org.apache.xbean.kernel.StoppedServiceCondition.
This condition that requires another service be in the STOPPED state to be satisfied.
StoppedServiceCondition(ServiceName) - Constructor for class org.apache.xbean.kernel.StoppedServiceCondition
Creates a condition that requires the specified service be in the STOPPED state to be satisfied.
StringServiceName - class org.apache.xbean.kernel.StringServiceName.
A simple service name containing a single String.
StringServiceName(String) - Constructor for class org.apache.xbean.kernel.StringServiceName
Create a StringServiceName wrapping specified name.
serviceNotificationError(ServiceMonitor, ServiceEvent, Throwable) - Method in interface org.apache.xbean.kernel.KernelMonitor
An error occured with notifiying a service monitor.
serviceNotificationError(ServiceMonitor, ServiceEvent, Throwable) - Method in class org.apache.xbean.kernel.standard.KernelMonitorBroadcaster
An error occured with notifiying a service monitor.
serviceRegistered(ServiceEvent) - Method in class org.apache.xbean.kernel.NullServiceMonitor
A new service has been registered with the kernel.
serviceRegistered(ServiceEvent) - Method in interface org.apache.xbean.kernel.ServiceMonitor
A new service has been registered with the kernel.
serviceRegistered(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.AsyncServiceMonitor
A new service has been registered with the kernel.
serviceRegistered(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.ServiceMonitorBroadcaster
A new service has been registered with the kernel.
serviceRunning(ServiceEvent) - Method in class org.apache.xbean.kernel.NullServiceMonitor
A service has entered the RUNNING state.
serviceRunning(ServiceEvent) - Method in interface org.apache.xbean.kernel.ServiceMonitor
A service has entered the RUNNING state.
serviceRunning(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.AsyncServiceMonitor
A service has entered the RUNNING state.
serviceRunning(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.ServiceMonitorBroadcaster
A service has entered the RUNNING state.
serviceStartError(ServiceEvent) - Method in class org.apache.xbean.kernel.NullServiceMonitor
An error occured while calling creating the service.
serviceStartError(ServiceEvent) - Method in interface org.apache.xbean.kernel.ServiceMonitor
An error occured while calling creating the service.
serviceStartError(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.AsyncServiceMonitor
An error occured while calling creating the service.
serviceStartError(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.ServiceMonitorBroadcaster
An error occured while calling creating the service.
serviceStarting(ServiceEvent) - Method in class org.apache.xbean.kernel.NullServiceMonitor
A service has entered the STARTING state.
serviceStarting(ServiceEvent) - Method in interface org.apache.xbean.kernel.ServiceMonitor
A service has entered the STARTING state.
serviceStarting(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.AsyncServiceMonitor
A service has entered the STARTING state.
serviceStarting(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.ServiceMonitorBroadcaster
A service has entered the STARTING state.
serviceStopError(ServiceEvent) - Method in class org.apache.xbean.kernel.NullServiceMonitor
An error occured while calling destroying the service.
serviceStopError(ServiceEvent) - Method in interface org.apache.xbean.kernel.ServiceMonitor
An error occured while calling destroying the service.
serviceStopError(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.AsyncServiceMonitor
An error occured while calling destroying the service.
serviceStopError(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.ServiceMonitorBroadcaster
An error occured while calling destroying the service.
serviceStopped(ServiceEvent) - Method in class org.apache.xbean.kernel.NullServiceMonitor
A service has entered the STOPPED state.
serviceStopped(ServiceEvent) - Method in interface org.apache.xbean.kernel.ServiceMonitor
A service has entered the STOPPED state.
serviceStopped(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.AsyncServiceMonitor
A service has entered the STOPPED state.
serviceStopped(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.ServiceMonitorBroadcaster
A service has entered the STOPPED state.
serviceStopping(ServiceEvent) - Method in class org.apache.xbean.kernel.NullServiceMonitor
A service has entered the RUNNING state.
serviceStopping(ServiceEvent) - Method in interface org.apache.xbean.kernel.ServiceMonitor
A service has entered the RUNNING state.
serviceStopping(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.AsyncServiceMonitor
A service has entered the RUNNING state.
serviceStopping(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.ServiceMonitorBroadcaster
A service has entered the RUNNING state.
serviceUnregistered(ServiceEvent) - Method in class org.apache.xbean.kernel.NullServiceMonitor
A service has been unregistered from the kernel.
serviceUnregistered(ServiceEvent) - Method in interface org.apache.xbean.kernel.ServiceMonitor
A service has been unregistered from the kernel.
serviceUnregistered(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.AsyncServiceMonitor
A service has been unregistered from the kernel.
serviceUnregistered(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.ServiceMonitorBroadcaster
A service has been unregistered from the kernel.
serviceWaitingToStart(ServiceEvent) - Method in class org.apache.xbean.kernel.NullServiceMonitor
A service is waiting to start because some start conditions are unsatified.
serviceWaitingToStart(ServiceEvent) - Method in interface org.apache.xbean.kernel.ServiceMonitor
A service is waiting to start because some start conditions are unsatified.
serviceWaitingToStart(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.AsyncServiceMonitor
A service is waiting to start because some start conditions are unsatified.
serviceWaitingToStart(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.ServiceMonitorBroadcaster
A service is waiting to start because some start conditions are unsatified.
serviceWaitingToStop(ServiceEvent) - Method in class org.apache.xbean.kernel.NullServiceMonitor
A service is waiting to stop because some stop condition is unsatified.
serviceWaitingToStop(ServiceEvent) - Method in interface org.apache.xbean.kernel.ServiceMonitor
A service is waiting to stop because some stop condition is unsatified.
serviceWaitingToStop(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.AsyncServiceMonitor
A service is waiting to stop because some stop condition is unsatified.
serviceWaitingToStop(ServiceEvent) - Method in class org.apache.xbean.kernel.standard.ServiceMonitorBroadcaster
A service is waiting to stop because some stop condition is unsatified.
set(ServiceContext) - Static method in class org.apache.xbean.kernel.ServiceContextThreadLocal
Assocates the specified ServiceContext with the current thread.
setEnabled(boolean) - Method in class org.apache.xbean.kernel.AbstractServiceFactory
Sets the enabled status of this service factory. A disabled restartable service can not be started and a disabled non-restartable service can not be loaded into a kernel.
setEnabled(boolean) - Method in interface org.apache.xbean.kernel.ServiceFactory
Sets the enabled status of this service factory.
setSatisfied() - Method in interface org.apache.xbean.kernel.ServiceConditionContext
Used to notify the container that the condition has been satisfied asychronously.
setSatisfied() - Method in class org.apache.xbean.kernel.standard.StandardServiceConditionContext
Used to notify the container that the condition has been satisfied asychronously.
setServiceEnabled(ServiceName, boolean) - Method in interface org.apache.xbean.kernel.Kernel
Sets the enabled status of a service.
setServiceEnabled(ServiceName, boolean) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Sets the enabled status of a service. A disabled restartable service can not be started. This state has no effect on a service that is already started, but if a running service is disabled, it can not be restarted. This method is equivalent to:

     kernel.getServiceFactory(serviceName).setEnabled(enabled);
 

start(boolean, StartStrategy) - Method in class org.apache.xbean.kernel.standard.ServiceManager
Attempts to starts the service.
startError(ServiceName, Throwable) - Method in interface org.apache.xbean.kernel.StartStrategy
Handle the start error.
startService(ServiceName) - Method in interface org.apache.xbean.kernel.Kernel
Immediately starts the service using the SYNCHRONOUS start strategy.
startService(ServiceName, StartStrategy) - Method in interface org.apache.xbean.kernel.Kernel
Immediately starts the service using the specified start strategy.
startService(ServiceName) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Immediately starts the service using the SYNCHRONOUS start strategy. Any exception throw from service constuction is throw directly from this method. If a start condition can not be immediately satisfied, a UnsatisfiedConditionsException will be thrown. If a service already in the RUNNING state, or is not restartable, this method is a noop. If the service is in the STOPPING state an IllegalServiceStateException will be thrown. If the service is disabled, this method will throw an IllegalServiceStateException.

This method has no effect on as service that is not restartable.

startService(ServiceName, StartStrategy) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Immediately starts the service using the specified start strategy.

The start strategy determines how any exception thrown from service constuction is handled including throwing the exception directly from this method.

The start strategy determines what to do if a start condition can not be immediately satisfied. Possibilities include throwing an UnsatisfiedConditionsException, blocking, leaving the service in the RUNNING state, or unregistering the service.

If a service already in the RUNNING state, or is not restartable, this method is a noop. If the service is in the STOPPING state an IllegalServiceStateException will be thrown. If the service is disabled, this method will throw an IllegalServiceStateException.

This method has no effect on as service that is not restartable.

startServiceRecursive(ServiceName) - Method in interface org.apache.xbean.kernel.Kernel
Immediately starts the service, and if the start ultimately completes successfully, all services owned by the specified service, all services that are owned by those services, and so on, will be started using the startServiceRecursive(ServiceName) method.
startServiceRecursive(ServiceName, StartStrategy) - Method in interface org.apache.xbean.kernel.Kernel
Immediately starts the service, and if the start ultimately completes successfully, all services owned by the specified service, all services that are owned by those services, and so on, will be started using the startServiceRecursive(ServiceName, StartStrategy) method.
startServiceRecursive(ServiceName) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Immediately starts the service, and if the start ultimately completes successfully, all services owned by the specified service, all services that are owned by those services, and so on, will be started using the startServiceRecursive(ServiceName) method.
startServiceRecursive(ServiceName, StartStrategy) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Immediately starts the service, and if the start ultimately completes successfully, all services owned by the specified service, all services that are owned by those services, and so on, will be started using the startServiceRecursive(ServiceName, StartStrategy) method.
stop(StopStrategy) - Method in class org.apache.xbean.kernel.standard.ServiceManager
Attempts to stop the service.
stopService(ServiceName) - Method in interface org.apache.xbean.kernel.Kernel
Immediately stops the service using the SYNCHRONOUS stop strategy.
stopService(ServiceName, StopStrategy) - Method in interface org.apache.xbean.kernel.Kernel
Immediately stops the service using the specified stop strategy.
stopService(ServiceName) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Immediately stops the service using the SYNCHRONOUS stop strategy. If a stop condition can not be immediately satisfied, an UnsatisfiedConditionsException will be thrown. If a service already in the STOPPED state, this method is a noop.

If the service is not restartable, this method only attempts to satify the stop conditions. This is useful for stopping all dependent services of a non-restartable service before unregistering the service.

stopService(ServiceName, StopStrategy) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Immediately stops the service using the specified stop strategy. If a stop condition can not be immediately satisfied, an UnsatisfiedConditionsException will be thrown. If a service already in the STOPPED state, this method is a noop.

If the service is not restartable, this method only attempts to satify the stop conditions. This is useful for stopping all dependent services of a non-restartable service before unregistering the service.


T

toString() - Method in interface org.apache.xbean.kernel.ServiceName
A service name should return a string from toString that can be used in a String constructor.
toString() - Method in class org.apache.xbean.kernel.ServiceState
Returns the name of this state.
toString() - Method in class org.apache.xbean.kernel.StringServiceName
 
toString() - Method in class org.apache.xbean.kernel.standard.ServiceManager
 

U

UNREGISTER - Static variable in class org.apache.xbean.kernel.StartStrategies
This strategy attempts to start the service immedately.
UnregisterServiceException - exception org.apache.xbean.kernel.UnregisterServiceException.
Signafies that there was a problem starting a service and the StartStrategies would like the kernel to unregister the service.
UnregisterServiceException(ServiceName, Throwable) - Constructor for class org.apache.xbean.kernel.UnregisterServiceException
Creates a UnregisterServiceException for the specified service name.
UnsatisfiedConditionsException - exception org.apache.xbean.kernel.UnsatisfiedConditionsException.
Signifies that there were unsatified conditions during a start or stop operation.
UnsatisfiedConditionsException(String, ServiceName, Set) - Constructor for class org.apache.xbean.kernel.UnsatisfiedConditionsException
Creates an UnsatisfiedConditionsException for the specified service and unsatisfied conditions.
unregisterService(ServiceName) - Method in interface org.apache.xbean.kernel.Kernel
Unregisters a service from this kernel.
unregisterService(ServiceName, StopStrategy) - Method in interface org.apache.xbean.kernel.Kernel
Unregisters a service from this kernel.
unregisterService(ServiceName, StopStrategy) - Method in class org.apache.xbean.kernel.standard.ServiceManagerRegistry
Stops and destorys the ServiceManager and then unregisters it.
unregisterService(ServiceName) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Unregisters a service from this kernel. The kernel will attempt to stop the service using the SYNCHRONOUS stop strategy, but if it can not stop the service a ServiceRegistrationException will be thrown containing an UnsatisfiedConditionsException.
unregisterService(ServiceName, StopStrategy) - Method in class org.apache.xbean.kernel.standard.StandardKernel
Unregisters a service from this kernel. The kernel will attempt to stop the service using the specified stop strategy, but if it can not stop the service a ServiceRegistrationException will be thrown containing either an UnsatisfiedConditionsException or a IllegalServiceStateException.

W

waitForDestruction() - Method in interface org.apache.xbean.kernel.Kernel
Waits for the kernel to be destroyed.
waitForDestruction() - Method in class org.apache.xbean.kernel.standard.StandardKernel
Waits for the kernel to be destroyed.
waitForUnsatisfiedConditions(ServiceName, Set) - Method in interface org.apache.xbean.kernel.StartStrategy
Determines if the kernel should wait for the unsatified conditions to be satisfied.
waitForUnsatisfiedConditions(ServiceName, Set) - Method in interface org.apache.xbean.kernel.StopStrategy
Determines if the kernel should wait for the unsatified conditions to be satisfied.

A B C D E F G H I K L N O P R S T U W

Copyright © {inceptionYear}-2006 Apache Software Foundation. All Rights Reserved.