org.eclipse.jetty.osgi.boot.logback
Class FragmentActivator

java.lang.Object
  extended by org.eclipse.jetty.osgi.boot.logback.FragmentActivator
All Implemented Interfaces:
LibExtClassLoaderHelper.IFilesInJettyHomeResourcesProcessor, org.osgi.framework.BundleActivator

public class FragmentActivator
extends Object
implements org.osgi.framework.BundleActivator, LibExtClassLoaderHelper.IFilesInJettyHomeResourcesProcessor

Pseudo fragment activator. Called by the main org.eclipse.jetty.osgi.boot bundle. Please note: this is not a real BundleActivator. Simply something called back by the host bundle. The fragment is in charge of placing a hook to configure logback when the files inside jettyhome/resources are parsed.


Constructor Summary
FragmentActivator()
           
 
Method Summary
 void processFilesInResourcesFolder(File jettyHome, Map<String,File> files)
           
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
          Called when this bundle is stopped so the Framework can perform the bundle-specific activities necessary to stop the bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FragmentActivator

public FragmentActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws Exception
Called when this bundle is stopped so the Framework can perform the bundle-specific activities necessary to stop the bundle. In general, this method should undo the work that the BundleActivator.start method started. There should be no active threads that were started by this bundle when this bundle returns. A stopped bundle must not call any Framework objects.

This method must complete and return to its caller in a timely manner.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
context - The execution context of the bundle being stopped.
Throws:
Exception - If this method throws an exception, the bundle is still marked as stopped, and the Framework will remove the bundle's listeners, unregister all services registered by the bundle, and release all services used by the bundle.

processFilesInResourcesFolder

public void processFilesInResourcesFolder(File jettyHome,
                                          Map<String,File> files)
Specified by:
processFilesInResourcesFolder in interface LibExtClassLoaderHelper.IFilesInJettyHomeResourcesProcessor


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.