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

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

public final class BundleResourceLoader
extends Object
implements ResourceLoader

Bundle-based ResourceLoader.


Constructor Summary
BundleResourceLoader(org.osgi.framework.Bundle bundle)
           
 
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

BundleResourceLoader

public BundleResourceLoader(org.osgi.framework.Bundle bundle)
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.