ASF Bugzilla – Attachment 25851 Details for
Bug 43282
Add OSGi packaging info to log4j and companions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Log4jActivator.java
Log4jActivator.java (text/x-java), 1015 bytes, created by
Craig Ziesman
on 2010-08-05 16:02:53 UTC
(
hide
)
Description:
Log4jActivator.java
Filename:
MIME Type:
Creator:
Craig Ziesman
Created:
2010-08-05 16:02:53 UTC
Size:
1015 bytes
patch
obsolete
>/* > * To change this template, choose Tools | Templates > * and open the template in the editor. > */ >package org.apache.log4j.osgi; > >import org.osgi.framework.BundleActivator; >import org.osgi.framework.BundleContext; >import org.osgi.framework.ServiceEvent; >import org.osgi.framework.ServiceListener; > >/** > * > * @author cziesman > */ >public class Log4jActivator implements BundleActivator, ServiceListener >{ > > /** > * BundleContext reference provided by the OSGi framework. > */ > private static BundleContext bundleContext; > > public void start(BundleContext bundleContext) throws Exception > { > Log4jActivator.bundleContext = bundleContext; > > Log4jActivator.bundleContext.addServiceListener(this); > } > > public void stop(BundleContext bundleContext) throws Exception > { > Log4jActivator.bundleContext.removeServiceListener(this); > } > > public void serviceChanged(ServiceEvent event) > { > } > > public static BundleContext getBundleContext() > { > return bundleContext; > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 43282
:
25850
| 25851 |
25852