org.ops4j.pax.logging.example
Class Activator

java.lang.Object
  extended by org.ops4j.pax.logging.example.Activator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class Activator
extends java.lang.Object
implements org.osgi.framework.BundleActivator

This Activator starts up the Jetty server and enables port 8080, which serves a Hello,World message. Jetty 5.1 uses Jakarta Commons Logging, and we are showing that those logging statements will be passed to the Pax Logging service, and ultimately output to the Log4J backend.


Constructor Summary
Activator()
           
 
Method Summary
 void start(org.osgi.framework.BundleContext bundleContext)
           
 void stop(org.osgi.framework.BundleContext bundleContext)
           
 
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
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext bundleContext)
          throws java.lang.Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception


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