org.ops4j.pax.web.extender.war.internal
Class Activator
java.lang.Object
org.ops4j.pax.web.extender.war.internal.Activator
- All Implemented Interfaces:
- org.osgi.framework.BundleActivator
public class Activator
- extends Object
- implements org.osgi.framework.BundleActivator
WAR Extender activator.
Starts an web.xml watcher on installed bundles. When a bundle containing "WEB-INF/web.xml" is started the web.xml
will get parsed and an web app will be created. On stop of bundle containing web.xml or stop of this bundle , the
created web app will be unregistered.
- Since:
- 0.3.0, December 27, 2007
- Author:
- Alin Dreghiciu
|
Method Summary |
void |
start(org.osgi.framework.BundleContext bundleContext)
Starts an web.xml watcher on installed bundles. |
void |
stop(org.osgi.framework.BundleContext bundleContext)
Stops the watcher, fact that will trigger that all registered web appas to be unregistered. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Activator
public Activator()
start
public void start(org.osgi.framework.BundleContext bundleContext)
throws Exception
- Starts an web.xml watcher on installed bundles.
- Specified by:
start in interface org.osgi.framework.BundleActivator
- Throws:
Exception- See Also:
BundleActivator.start(BundleContext)
stop
public void stop(org.osgi.framework.BundleContext bundleContext)
throws Exception
- Stops the watcher, fact that will trigger that all registered web appas to be unregistered.
- Specified by:
stop in interface org.osgi.framework.BundleActivator
- Throws:
Exception- See Also:
BundleActivator.stop(BundleContext)
Copyright © 2006-2010 OPS4J - Open Participation Software for Java. All Rights Reserved.