org.openbp.common.classloader
Class FileBinaryResourceSpec

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

public class FileBinaryResourceSpec
extends BinaryResourceSpec

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

Author:
Heiko Erhardt

Field Summary
 
Fields inherited from class org.openbp.common.classloader.BinaryResourceSpec
content
 
Constructor Summary
FileBinaryResourceSpec()
          Default constructor.
FileBinaryResourceSpec(java.net.URL url)
          Value constructor.
FileBinaryResourceSpec(java.net.URL url, byte[] content)
          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.BinaryResourceSpec
getContent, setContent, toUrl
 
Methods inherited from class org.openbp.common.classloader.UrlResourceSpec
getUrl, setUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileBinaryResourceSpec

public FileBinaryResourceSpec()
Default constructor.


FileBinaryResourceSpec

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

Parameters:
url - URL of the resource

FileBinaryResourceSpec

public FileBinaryResourceSpec(java.net.URL url,
                              byte[] content)
Value constructor.

Parameters:
url - URL of the resource
content - Binary content
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.