Class TldLocatableURLClassloader

  extended by java.lang.ClassLoader
      extended by
          extended by
              extended by org.eclipse.jetty.osgi.boot.internal.jsp.TldLocatableURLClassloader
Direct Known Subclasses:

public class TldLocatableURLClassloader
extends URLClassLoader

Tricky url classloader. In fact we don't want a real URLClassLoader: we want OSGi to provide its classloader and let it does. But to let TldLocationsCache find the core tlds inside the jars we must be a URLClassLoader that returns an array of jars where tlds are stored when the method getURLs is called.

Constructor Summary
TldLocatableURLClassloader(ClassLoader osgiClassLoader, URL[] jarsWithTldsInside)
Method Summary
 URL[] getURLs()
Methods inherited from class
addURL, definePackage, findClass, findResource, findResources, getPermissions, newInstance, newInstance
Methods inherited from class
defineClass, defineClass
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public TldLocatableURLClassloader(ClassLoader osgiClassLoader,
                                  URL[] jarsWithTldsInside)
Method Detail


public URL[] getURLs()
getURLs in class URLClassLoader
the jars that contains tlds so that TldLocationsCache or TldScanner can find them.

Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.