org.openbp.common.classloader
Class JarUrlResourceSpec

java.lang.Object
  extended by org.openbp.common.classloader.UrlResourceSpec
      extended by org.openbp.common.classloader.JarUrlResourceSpec
All Implemented Interfaces:
ResourceSpec

public class JarUrlResourceSpec
extends UrlResourceSpec

XClassLoader resource specification that specifies its target using an URL to a Jar file.

Author:
Heiko Erhardt

Constructor Summary
JarUrlResourceSpec()
          Default constructor.
JarUrlResourceSpec(java.net.URL url)
          Value constructor.
 
Method Summary
 void addEntriesToClassLoader(XClassLoader cl)
          Adds all entries denoted by this resource specification to the class loader.
 
Methods inherited from class org.openbp.common.classloader.UrlResourceSpec
getUrl, setUrl, toUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarUrlResourceSpec

public JarUrlResourceSpec()
Default constructor.


JarUrlResourceSpec

public JarUrlResourceSpec(java.net.URL url)
Value constructor.

Parameters:
url - URL of the resource
Method Detail

addEntriesToClassLoader

public void addEntriesToClassLoader(XClassLoader cl)
                             throws java.lang.Exception
Adds all entries denoted by this resource specification to the class loader.

Parameters:
cl - The class loader
Throws:
java.lang.Exception - On any error that occurs while scanning or reading the resource


Copyright © 2011. All Rights Reserved.