|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ServiceNotFoundException | |
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 | Provides the standard kernel implementation. |
Uses of ServiceNotFoundException in org.apache.xbean.kernel |
Methods in org.apache.xbean.kernel that throw ServiceNotFoundException | |
void |
Kernel.unregisterService(ServiceName serviceName)
Unregisters a service from this kernel. |
void |
Kernel.unregisterService(ServiceName serviceName,
StopStrategy stopStrategy)
Unregisters a service from this kernel. |
ServiceState |
Kernel.getServiceState(ServiceName serviceName)
Gets the ServiceState of the specified service. |
long |
Kernel.getServiceStartTime(ServiceName serviceName)
Gets the time the specified service entered the RUNNING state since the epoch (January 1, 1970, 00:00:00) in milliseconds. |
void |
Kernel.startService(ServiceName serviceName)
Immediately starts the service using the SYNCHRONOUS start strategy. |
void |
Kernel.startService(ServiceName serviceName,
StartStrategy startStrategy)
Immediately starts the service using the specified start strategy. |
void |
Kernel.startServiceRecursive(ServiceName serviceName)
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. |
void |
Kernel.startServiceRecursive(ServiceName serviceName,
StartStrategy startStrategy)
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. |
void |
Kernel.stopService(ServiceName serviceName)
Immediately stops the service using the SYNCHRONOUS stop strategy. |
void |
Kernel.stopService(ServiceName serviceName,
StopStrategy stopStrategy)
Immediately stops the service using the specified stop strategy. |
boolean |
Kernel.isServiceEnabled(ServiceName serviceName)
Determines if the service can be instantiated in a kernel. |
void |
Kernel.setServiceEnabled(ServiceName serviceName,
boolean enabled)
Sets the enabled status of a service. |
java.lang.Object |
Kernel.getService(ServiceName serviceName)
Gets the service registered under the specified name. |
ServiceFactory |
Kernel.getServiceFactory(ServiceName serviceName)
Gets the service factory registered under the specified name. |
java.lang.ClassLoader |
Kernel.getClassLoaderFor(ServiceName serviceName)
Gets the class loader associated with the specifed service. |
Uses of ServiceNotFoundException in org.apache.xbean.kernel.standard |
Methods in org.apache.xbean.kernel.standard that throw ServiceNotFoundException | |
void |
StandardKernel.unregisterService(ServiceName serviceName)
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. |
void |
StandardKernel.unregisterService(ServiceName serviceName,
StopStrategy stopStrategy)
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. |
ServiceState |
StandardKernel.getServiceState(ServiceName serviceName)
Gets the ServiceState of the specified service. If the service is not restartable, this method will always return RUNNING. |
long |
StandardKernel.getServiceStartTime(ServiceName serviceName)
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. |
void |
StandardKernel.startService(ServiceName serviceName)
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. |
void |
StandardKernel.startService(ServiceName serviceName,
StartStrategy startStrategy)
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. |
void |
StandardKernel.startServiceRecursive(ServiceName serviceName)
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. |
void |
StandardKernel.startServiceRecursive(ServiceName serviceName,
StartStrategy startStrategy)
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. |
void |
StandardKernel.stopService(ServiceName serviceName)
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. |
void |
StandardKernel.stopService(ServiceName serviceName,
StopStrategy stopStrategy)
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. |
boolean |
StandardKernel.isServiceEnabled(ServiceName serviceName)
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(); |
void |
StandardKernel.setServiceEnabled(ServiceName serviceName,
boolean enabled)
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); |
java.lang.Object |
StandardKernel.getService(ServiceName serviceName)
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. |
ServiceFactory |
StandardKernel.getServiceFactory(ServiceName serviceName)
Gets the service factory registered under the specified name. |
java.lang.ClassLoader |
StandardKernel.getClassLoaderFor(ServiceName serviceName)
Gets the class loader associated with the specifed service. |
ServiceManager |
ServiceManagerRegistry.getServiceManager(ServiceName serviceName)
Gets the service manager registered under the specified name. |
void |
ServiceManagerRegistry.unregisterService(ServiceName serviceName,
StopStrategy stopStrategy)
Stops and destorys the ServiceManager and then unregisters it. |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |