at.spardat.xma.boot.comp
Class CCLoader

java.lang.Object
  extended byjava.lang.ClassLoader
      extended byjava.security.SecureClassLoader
          extended byjava.net.URLClassLoader
              extended byat.spardat.xma.boot.comp.CCLoader

public class CCLoader
extends java.net.URLClassLoader

custom classloader, created for each xma-application ! lazy loading is not supported until now !


Constructor Summary
CCLoader(java.net.URL[] classpath)
          Contructs a CCLoader
CCLoader(java.net.URL[] classpath, java.lang.ClassLoader parent)
          Contructs a CCLoader
 
Method Summary
 void addNativeLib(java.net.URL url)
          Appends the specified URL representing a native library to the list of URLs to search for native libraries.
 void addNativeLibPath(java.net.URL url)
          Appends the specified URL to the list of URLs representing paths to search for native libraries.
 void addNativeLibPaths(java.util.Collection list)
          Appends the URLs in the specified Collection to the list of URLs reprsenting paths to search for native libraries.
 void addNativeLibs(java.util.Collection list)
          Appends the URLs in the specified Collection to the list of URLs to search for native libraries.
 void addURL(java.net.URL url)
          Appends the specified URL to the list of URLs to search for classes and resources.
 java.lang.String findLibrary(java.lang.String libname)
          Returns the absolute path name of a native library.
 
Methods inherited from class java.net.URLClassLoader
definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, 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

CCLoader

public CCLoader(java.net.URL[] classpath)
Contructs a CCLoader

Parameters:
classpath - containing one URL for each directory or jar-file to search for classes

CCLoader

public CCLoader(java.net.URL[] classpath,
                java.lang.ClassLoader parent)
Contructs a CCLoader

Parameters:
classpath - containing one URL for each directory or jar-file to search for classes
parent - the parent class loader to use
Method Detail

addURL

public void addURL(java.net.URL url)
Appends the specified URL to the list of URLs to search for classes and resources.

Parameters:
url - the URL to be added to the class path of URLs

addNativeLib

public void addNativeLib(java.net.URL url)
Appends the specified URL representing a native library to the list of URLs to search for native libraries.

Parameters:
url - the URL to be added to the library path of URLs

addNativeLibPath

public void addNativeLibPath(java.net.URL url)
Appends the specified URL to the list of URLs representing paths to search for native libraries.

Parameters:
url -
Since:
version_number

addNativeLibs

public void addNativeLibs(java.util.Collection list)
Appends the URLs in the specified Collection to the list of URLs to search for native libraries. The collection must contain only valid URLs.

Parameters:
list - of URLs to be added to the library path of URLs

addNativeLibPaths

public void addNativeLibPaths(java.util.Collection list)
Appends the URLs in the specified Collection to the list of URLs reprsenting paths to search for native libraries. The collection must contain only valid URLs.

Parameters:
list - of URLs to be added to the library path of URLs

findLibrary

public java.lang.String findLibrary(java.lang.String libname)
Returns the absolute path name of a native library. The library is searched for in the urls given with addNativeLib(URL) and addNativeLibs(Collection). The VM invokes this method to locate the native libraries that belong to classes loaded with this class loader.

Parameters:
libname - The library name
Returns:
The absolute path of the native library