org.apache.struts2.osgi
Class BundleClassLoaderInterface

java.lang.Object
  extended by org.apache.struts2.osgi.BundleClassLoaderInterface
All Implemented Interfaces:
ClassLoaderInterface

public class BundleClassLoaderInterface
extends java.lang.Object
implements ClassLoaderInterface

ClassLoaderInterface instance that delegates to the singleton of DefaultBundleAccessor


Field Summary
 
Fields inherited from interface com.opensymphony.xwork2.util.finder.ClassLoaderInterface
CLASS_LOADER_INTERFACE
 
Constructor Summary
BundleClassLoaderInterface()
           
 
Method Summary
 ClassLoaderInterface getParent()
           
 java.net.URL getResource(java.lang.String name)
           
 java.io.InputStream getResourceAsStream(java.lang.String name)
           
 java.util.Enumeration<java.net.URL> getResources(java.lang.String name)
           
 java.lang.Class<?> loadClass(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleClassLoaderInterface

public BundleClassLoaderInterface()
Method Detail

loadClass

public java.lang.Class<?> loadClass(java.lang.String name)
                             throws java.lang.ClassNotFoundException
Specified by:
loadClass in interface ClassLoaderInterface
Throws:
java.lang.ClassNotFoundException

getResource

public java.net.URL getResource(java.lang.String name)
Specified by:
getResource in interface ClassLoaderInterface

getResources

public java.util.Enumeration<java.net.URL> getResources(java.lang.String name)
                                                 throws java.io.IOException
Specified by:
getResources in interface ClassLoaderInterface
Throws:
java.io.IOException

getResourceAsStream

public java.io.InputStream getResourceAsStream(java.lang.String name)
                                        throws java.io.IOException
Specified by:
getResourceAsStream in interface ClassLoaderInterface
Throws:
java.io.IOException

getParent

public ClassLoaderInterface getParent()
Specified by:
getParent in interface ClassLoaderInterface


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.