org.ops4j.pax.web.extender.war.internal
Class Activator

java.lang.Object
  extended by org.ops4j.pax.web.extender.war.internal.Activator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class Activator
extends java.lang.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

Constructor Summary
Activator()
           
 
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
 

Constructor Detail

Activator

public Activator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bundleContext)
           throws java.lang.Exception
Starts an web.xml watcher on installed bundles.

Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception
See Also:
BundleActivator.start(BundleContext)

stop

public void stop(org.osgi.framework.BundleContext bundleContext)
          throws java.lang.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:
java.lang.Exception
See Also:
BundleActivator.stop(BundleContext)


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.