Class ProviderUtil

  extended by org.apache.logging.log4j.util.ProviderUtil

public final class ProviderUtil
extends Object

Consider this class private.

Field Summary
protected static String PROVIDER_RESOURCE
          Resource name for a Log4j 2 provider properties file.
Method Summary
static ClassLoader findClassLoader()
static Iterable<Provider> getProviders()
static boolean hasProviders()
protected static void loadProvider(URL url, ClassLoader cl)
          Loads an individual Provider implementation.
protected static void loadProviders(Enumeration<URL> enumResources, ClassLoader cl)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


protected static final String PROVIDER_RESOURCE
Resource name for a Log4j 2 provider properties file.

See Also:
Constant Field Values
Method Detail


protected static void loadProviders(Enumeration<URL> enumResources,
                                    ClassLoader cl)


protected static void loadProvider(URL url,
                                   ClassLoader cl)
Loads an individual Provider implementation. This method is really only useful for the OSGi bundle activator and this class itself.

url - the URL to the provider properties file
cl - the ClassLoader to load the provider classes with


public static Iterable<Provider> getProviders()


public static boolean hasProviders()


public static ClassLoader findClassLoader()

Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.