org.apache.openejb.server.osgi
Class ServiceManagerExtender

java.lang.Object
  extended by org.apache.openejb.server.ServiceManager
      extended by org.apache.openejb.server.osgi.ServiceManagerExtender

public class ServiceManagerExtender
extends ServiceManager

Version:
$Rev$ $Date$

Constructor Summary
ServiceManagerExtender(org.osgi.framework.BundleContext bundleContext)
           
 
Method Summary
protected  void addedServers(org.osgi.framework.Bundle bundle, Map<String,Properties> resources)
           
 void init()
           
protected  void removedServers(org.osgi.framework.Bundle bundle)
           
protected  void shutdown()
           
 void start(boolean block)
          Start the services managed by this instance.
 void stop()
           
 
Methods inherited from class org.apache.openejb.server.ServiceManager
accept, get, getManager, getObjectName, initServer, initServers, isEnabled, manage, register, setServiceManager, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceManagerExtender

public ServiceManagerExtender(org.osgi.framework.BundleContext bundleContext)
Method Detail

init

public void init()
          throws Exception
Specified by:
init in class ServiceManager
Throws:
Exception

start

public void start(boolean block)
           throws ServiceException
Description copied from class: ServiceManager
Start the services managed by this instance.

Services should not be started if ServiceManager.stop() has already been called, in which case a ServiceException should be thrown

Specified by:
start in class ServiceManager
Parameters:
block - A request to block
Throws:
ServiceException - On error or if the manager has been stopped already

addedServers

protected void addedServers(org.osgi.framework.Bundle bundle,
                            Map<String,Properties> resources)

stop

public void stop()
Specified by:
stop in class ServiceManager

removedServers

protected void removedServers(org.osgi.framework.Bundle bundle)

shutdown

protected void shutdown()


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.