org.apache.logging.log4j.core.util
Class ClassLoaderResourceLoader

java.lang.Object
  extended by org.apache.logging.log4j.core.util.ClassLoaderResourceLoader
All Implemented Interfaces:
ResourceLoader

public final class ClassLoaderResourceLoader
extends Object
implements ResourceLoader

ClassLoader-based ResourceLoader.


Constructor Summary
ClassLoaderResourceLoader(ClassLoader loader)
           
 
Method Summary
 URL getResource(String name)
           
 Enumeration<URL> getResources(String name)
           
 Class<?> loadClass(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassLoaderResourceLoader

public ClassLoaderResourceLoader(ClassLoader loader)
Method Detail

loadClass

public Class<?> loadClass(String name)
                   throws ClassNotFoundException
Specified by:
loadClass in interface ResourceLoader
Throws:
ClassNotFoundException

getResource

public URL getResource(String name)
Specified by:
getResource in interface ResourceLoader

getResources

public Enumeration<URL> getResources(String name)
                              throws IOException
Specified by:
getResources in interface ResourceLoader
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


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.