Package org.apache.logging.log4j.util
Class Activator
java.lang.Object
org.apache.logging.log4j.util.Activator
- All Implemented Interfaces:
EventListener,org.osgi.framework.BundleActivator,org.osgi.framework.BundleListener,org.osgi.framework.SynchronousBundleListener
public class Activator
extends Object
implements org.osgi.framework.BundleActivator, org.osgi.framework.SynchronousBundleListener
Consider this class private.
OSGi bundle activator. Used for locating an implementation of
LoggerContextFactory et al. that have corresponding
META-INF/log4j-provider.properties files. As with all OSGi BundleActivator classes, this class is not for
public use and is only useful in an OSGi framework environment.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate static final Loggerprivate static final SecurityManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbundleChanged(org.osgi.framework.BundleEvent event) private static voidcheckPermission(Permission permission) private voidloadProvider(org.osgi.framework.Bundle bundle) private voidloadProvider(org.osgi.framework.BundleContext bundleContext, org.osgi.framework.wiring.BundleWiring bundleWiring) voidstart(org.osgi.framework.BundleContext bundleContext) voidstop(org.osgi.framework.BundleContext bundleContext) private StringtoStateString(int state) private void
-
Field Details
-
SECURITY_MANAGER
-
LOGGER
-
lockingProviderUtil
private boolean lockingProviderUtil
-
-
Constructor Details
-
Activator
public Activator()
-
-
Method Details
-
checkPermission
-
loadProvider
private void loadProvider(org.osgi.framework.Bundle bundle) -
toStateString
-
loadProvider
private void loadProvider(org.osgi.framework.BundleContext bundleContext, org.osgi.framework.wiring.BundleWiring bundleWiring) -
start
- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
unlockIfReady
private void unlockIfReady() -
stop
- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event) - Specified by:
bundleChangedin interfaceorg.osgi.framework.BundleListener
-