org.apache.xbean.kernel.standard
Class ServiceManagerFactory
java.lang.Object
org.apache.xbean.kernel.standard.ServiceManagerFactory
- public class ServiceManagerFactory
- extends java.lang.Object
The ServiceManagerFactory handles the construction ServiceManagers.
- Since:
- 2.0
- Version:
- $Id$
- Author:
- Dain Sundstrom
Constructor Summary |
ServiceManagerFactory(Kernel kernel,
ServiceMonitorBroadcaster serviceMonitor,
edu.emory.mathcs.backport.java.util.concurrent.Executor serviceExecutor,
long timeoutDuration,
edu.emory.mathcs.backport.java.util.concurrent.TimeUnit timeoutUnits)
Creates a ServiceManagerFactory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceManagerFactory
public ServiceManagerFactory(Kernel kernel,
ServiceMonitorBroadcaster serviceMonitor,
edu.emory.mathcs.backport.java.util.concurrent.Executor serviceExecutor,
long timeoutDuration,
edu.emory.mathcs.backport.java.util.concurrent.TimeUnit timeoutUnits)
- Creates a ServiceManagerFactory.
- Parameters:
kernel
- the kernel in which the service will be registeredserviceMonitor
- the service monitor used for all services created by this factoryserviceExecutor
- the executor available to the service managertimeoutDuration
- the maximum duration to wait for a service event to completetimeoutUnits
- the unit of measure for the timeoutDuration
createServiceManager
public ServiceManager createServiceManager(long serviceId,
ServiceName serviceName,
ServiceFactory serviceFactory,
java.lang.ClassLoader classLoader)
- Creates a ServiceManager.
- Parameters:
serviceId
- the id of the serviceserviceName
- the name of the serviceserviceFactory
- the factory for the serviceclassLoader
- the classloader for the service
- Returns:
- a new service manager
Copyright © {inceptionYear}-2006 Apache Software Foundation. All Rights Reserved.