org.openbp.common.classloader
Interface ResourceSpec

All Known Implementing Classes:
BinaryResourceSpec, DirectoryUrlResourceSpec, FileBinaryResourceSpec, FileUrlResourceSpec, JarBinaryResourceSpec, JarUrlResourceSpec, UrlResourceSpec

public interface ResourceSpec

XClassLoader resource specification.

Author:
Heiko Erhardt

Method Summary
 void addEntriesToClassLoader(XClassLoader cl)
          Adds all entries denoted by this resource specification to the class loader.
 java.net.URL toUrl()
          Gets the URL representation of this resource specification.
 

Method Detail

toUrl

java.net.URL toUrl()
Gets the URL representation of this resource specification.


addEntriesToClassLoader

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.