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: 1406149 $ $Date: 2012-11-06 14:35:58 +0000 (Tue, 06 Nov 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
getObjectName
protected static ObjectName getObjectName(String serviceName)
register
public static void register(String serviceName,
ServerService service,
MBeanServer server)
manage
public static ServerService manage(String serviceName,
Properties serviceProperties,
ServerService service)
isEnabled
public static boolean isEnabled(Properties props)
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-2013 The Apache Software Foundation. All Rights Reserved.