org.apache.xbean.kernel.standard
Class ServiceManagerFactory

java.lang.Object
  extended byorg.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.
 
Method Summary
 ServiceManager createServiceManager(long serviceId, ServiceName serviceName, ServiceFactory serviceFactory, java.lang.ClassLoader classLoader)
          Creates a ServiceManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 registered
serviceMonitor - the service monitor used for all services created by this factory
serviceExecutor - the executor available to the service manager
timeoutDuration - the maximum duration to wait for a service event to complete
timeoutUnits - the unit of measure for the timeoutDuration
Method Detail

createServiceManager

public ServiceManager createServiceManager(long serviceId,
                                           ServiceName serviceName,
                                           ServiceFactory serviceFactory,
                                           java.lang.ClassLoader classLoader)
Creates a ServiceManager.

Parameters:
serviceId - the id of the service
serviceName - the name of the service
serviceFactory - the factory for the service
classLoader - the classloader for the service
Returns:
a new service manager


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