org.ops4j.pax.logging.samples.config.internal
Class Activator

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

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

Bundle Activator.
Looks up the Configuration Admin service and on activation will configure Pax Logging. On deactivation will unconfigure Pax Logging.

Since:
0.2.2, November 26, 2008
Author:
Alin Dreghiciu (adreghiciu@gmail.com)

Constructor Summary
Activator()
           
 
Method Summary
 void start(org.osgi.framework.BundleContext bundleContext)
           Configures Pax Logging via Configuration Admin.
 void stop(org.osgi.framework.BundleContext bundleContext)
           UnConfigures Pax Logging via Configuration Admin.
 
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
Configures Pax Logging via Configuration Admin.

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
UnConfigures Pax Logging via Configuration Admin.

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.