org.apache.xbean.kernel.standard
Class ServiceManagerFactory

java.lang.Object
  extended by org.apache.xbean.kernel.standard.ServiceManagerFactory

public class ServiceManagerFactory
extends Object

The ServiceManagerFactory handles the construction ServiceManagers.

Since:
2.0
Author:
Dain Sundstrom

Constructor Summary
ServiceManagerFactory(Kernel kernel, ServiceMonitorBroadcaster serviceMonitor, Executor serviceExecutor, long timeoutDuration, TimeUnit timeoutUnits)
          Creates a ServiceManagerFactory.
 
Method Summary
 ServiceManager createServiceManager(long serviceId, ServiceName serviceName, ServiceFactory serviceFactory)
          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,
                             Executor serviceExecutor,
                             long timeoutDuration,
                             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)
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 © 2005-2009 Apache Software Foundation. All Rights Reserved.