org.openbp.common.classloader
Class JarBinaryResourceSpec
java.lang.Object
org.openbp.common.classloader.UrlResourceSpec
org.openbp.common.classloader.BinaryResourceSpec
org.openbp.common.classloader.JarBinaryResourceSpec
- All Implemented Interfaces:
- ResourceSpec
public class JarBinaryResourceSpec
- extends BinaryResourceSpec
XClassLoader resource specification that specifies its target using an URL to a Jar file.
- Author:
- Heiko Erhardt
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JarBinaryResourceSpec
public JarBinaryResourceSpec()
- Default constructor.
JarBinaryResourceSpec
public JarBinaryResourceSpec(java.net.URL url)
- Value constructor.
- Parameters:
url - URL of the resource
JarBinaryResourceSpec
public JarBinaryResourceSpec(java.net.URL url,
byte[] content)
- Value constructor.
- Parameters:
url - URL of the resourcecontent - Binary content
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.