org.apache.openejb.server
Class ServiceManager
java.lang.Object
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) $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceManager
public ServiceManager()
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.