org.apache.geronimo.osgi.web.extender
Class WebContainerExtender

java.lang.Object
  extended by org.apache.geronimo.osgi.web.extender.WebContainerExtender
All Implemented Interfaces:
GBeanLifecycle

@GBean
public class WebContainerExtender
extends Object
implements GBeanLifecycle

An extender bundle to manage deployment of Web Application Bundles (WABs) to the RFC 66 web container.

Version:
$Rev: 918171 $, $Date: 2010-03-02 15:18:27 -0500 (Tue, 02 Mar 2010) $

Field Summary
static String WEB_CONTEXT_PATH_HEADER
           
 
Constructor Summary
WebContainerExtender(Environment defaultEnvironment, AbstractNameQuery transactionManagerAbstractName, AbstractNameQuery connectionTrackerAbstractName, AbstractNameQuery corbaGBeanAbstractName, AbstractNameQuery globalContextAbstractName, AbstractNameQuery serverName, Collection<? extends Repository> repositories, Collection<ModuleBuilder> webModuleBuilders, Kernel kernel, org.osgi.framework.BundleContext bundleContext)
           
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
 WebContainerEventDispatcher getEventDispatcher()
          Get the event dispatcher instance associated with this application.
 ExecutorService getExecutorService()
           
protected  void start()
           
 void start(org.osgi.framework.BundleContext context)
          Activate the bundle and initialize the extender instance.
protected  void stop()
           
 void stop(org.osgi.framework.BundleContext context)
          Shutdown the extender bundle at termination time.
protected  void unregisterWebApplication(WebApplication wab)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEB_CONTEXT_PATH_HEADER

public static final String WEB_CONTEXT_PATH_HEADER
See Also:
Constant Field Values
Constructor Detail

WebContainerExtender

public WebContainerExtender(@ParamAttribute(name="defaultEnvironment")
                            Environment defaultEnvironment,
                            @ParamAttribute(name="transactionManagerAbstractName")
                            AbstractNameQuery transactionManagerAbstractName,
                            @ParamAttribute(name="connectionTrackerAbstractName")
                            AbstractNameQuery connectionTrackerAbstractName,
                            @ParamAttribute(name="corbaGBeanAbstractName")
                            AbstractNameQuery corbaGBeanAbstractName,
                            @ParamAttribute(name="globalContextAbstractName")
                            AbstractNameQuery globalContextAbstractName,
                            @ParamAttribute(name="serverName")
                            AbstractNameQuery serverName,
                            @ParamReference(name="Repositories",namingType="Repository")
                            Collection<? extends Repository> repositories,
                            @ParamReference(name="WebModuleBuilders",namingType="ModuleBuilder")
                            Collection<ModuleBuilder> webModuleBuilders,
                            @ParamSpecial(type=kernel)
                            Kernel kernel,
                            @ParamSpecial(type=bundleContext)
                            org.osgi.framework.BundleContext bundleContext)
                     throws Exception
Throws:
Exception
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
Activate the bundle and initialize the extender instance.

Parameters:
context - The BundleContext for our bundle.

getExecutorService

public ExecutorService getExecutorService()

getEventDispatcher

public WebContainerEventDispatcher getEventDispatcher()
Get the event dispatcher instance associated with this application.

Returns:
The configured event dispatcher information.

stop

public void stop(org.osgi.framework.BundleContext context)
Shutdown the extender bundle at termination time.

Parameters:
context - Our BundleContext.

unregisterWebApplication

protected void unregisterWebApplication(WebApplication wab)

start

protected void start()

stop

protected void stop()

doStart

public void doStart()
             throws Exception
Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception

doFail

public void doFail()
Specified by:
doFail in interface GBeanLifecycle

doStop

public void doStop()
            throws Exception
Specified by:
doStop in interface GBeanLifecycle
Throws:
Exception


Copyright © 2003-2010 The Apache Geronimo development community. All Rights Reserved.