org.apache.openejb.server
Class ServiceManager

java.lang.Object
  extended by org.apache.openejb.server.ServiceManager
Direct Known Subclasses:
ServiceManagerExtender, SimpleServiceManager

public abstract class ServiceManager
extends Object

Version:
$Rev: 1308219 $ $Date: 2012-04-01 16:42:30 -0700 (Sun, 01 Apr 2012) $

Constructor Summary
ServiceManager()
           
 
Method Summary
protected  boolean accept(String serviceName)
           
static ServiceManager get()
           
static ServiceManager getManager()
           
abstract  void init()
           
protected  ServerService initServer(String serviceName, Properties serviceProperties)
           
protected  List<ServerService> initServers(Map<String,Properties> availableServices)
           
static ServerService manage(String serviceName, Properties serviceProperties, ServerService service)
           
static void register(String serviceName, ServerService service, MBeanServer server)
           
protected static void setServiceManager(ServiceManager newManager)
           
 void start()
           
abstract  void start(boolean block)
           
abstract  void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceManager

public ServiceManager()
Method Detail

getManager

public static ServiceManager getManager()

get

public static ServiceManager get()

setServiceManager

protected static void setServiceManager(ServiceManager newManager)

accept

protected boolean accept(String serviceName)

initServers

protected List<ServerService> initServers(Map<String,Properties> availableServices)
                                   throws IOException
Throws:
IOException

initServer

protected ServerService initServer(String serviceName,
                                   Properties serviceProperties)
                            throws IOException
Throws:
IOException

register

public static void register(String serviceName,
                            ServerService service,
                            MBeanServer server)

manage

public static ServerService manage(String serviceName,
                                   Properties serviceProperties,
                                   ServerService service)

init

public abstract void init()
                   throws Exception
Throws:
Exception

start

public void start()
           throws ServiceException
Throws:
ServiceException

start

public abstract void start(boolean block)
                    throws ServiceException
Throws:
ServiceException

stop

public abstract void stop()
                   throws ServiceException
Throws:
ServiceException


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.