org.eclipse.jetty.osgi.boot.internal.webapp
Class JettyContextHandlerExtender
java.lang.Object
org.eclipse.jetty.osgi.boot.internal.webapp.JettyContextHandlerExtender
- All Implemented Interfaces:
- EventListener, org.osgi.framework.BundleListener
public class JettyContextHandlerExtender
- extends Object
- implements org.osgi.framework.BundleListener
Support bundles that declare the webapp directly through headers in their
manifest.
Those headers will define a new WebApplication:
- Web-ContextPath
- Jetty-WarFolderPath
Those headers will define a new app started via a jetty-context or a list of
them. ',' column is the separator between the various context files.
And generate a jetty WebAppContext or another ContextHandler then registers
it as service. Kind of simpler than declarative services and their xml files.
Also avoid having the contributing bundle depend on jetty's package for
WebApp.
- Author:
- hmalphettes
Method Summary |
void |
bundleChanged(org.osgi.framework.BundleEvent event)
Receives notification that a bundle has had a lifecycle change. |
void |
init(org.osgi.framework.BundleContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JettyContextHandlerExtender
public JettyContextHandlerExtender()
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event)
- Receives notification that a bundle has had a lifecycle change.
- Specified by:
bundleChanged
in interface org.osgi.framework.BundleListener
- Parameters:
event
- The BundleEvent
.
init
public void init(org.osgi.framework.BundleContext context)
Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.