|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.util.ProviderUtil
public final class ProviderUtil
Consider this class private.
Utility class for Log4j Provider
s. When integrating with an application container framework, any Log4j
Providers not accessible through standard classpath scanning should loadProvider(java.net.URL, ClassLoader)
a classpath accordingly.
Field Summary | |
---|---|
protected static String |
PROVIDER_RESOURCE
Resource name for a Log4j 2 provider properties file. |
protected static Collection<Provider> |
PROVIDERS
|
protected static Lock |
STARTUP_LOCK
Guards the ProviderUtil singleton instance from lazy initialization. |
Method Summary | |
---|---|
static ClassLoader |
findClassLoader()
|
static Iterable<Provider> |
getProviders()
|
static boolean |
hasProviders()
|
protected static void |
lazyInit()
Lazily initializes the ProviderUtil singleton. |
protected static void |
loadProvider(URL url,
ClassLoader cl)
Loads an individual Provider implementation. |
protected static void |
loadProviders(Enumeration<URL> urls,
ClassLoader cl)
Deprecated. Use loadProvider(java.net.URL, ClassLoader) instead. Will be removed in 3.0. |
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
protected static final Collection<Provider> PROVIDERS
protected static final Lock STARTUP_LOCK
Method Detail |
---|
protected static void loadProvider(URL url, ClassLoader cl)
url
- the URL to the provider properties filecl
- the ClassLoader to load the provider classes with@Deprecated protected static void loadProviders(Enumeration<URL> urls, ClassLoader cl)
loadProvider(java.net.URL, ClassLoader)
instead. Will be removed in 3.0.
public static Iterable<Provider> getProviders()
public static boolean hasProviders()
protected static void lazyInit()
public static ClassLoader findClassLoader()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.