#include <ClassLoader.h>
Inheritance diagram for acdk::lang::ClassLoader:
API: Java Modified Note Will be used with SharedLibrary and/or the common type library.
Public Member Functions | |
ClassLoader () | |
ClassLoader (IN(RClassLoader) parent) | |
virtual RClass | defineClass (IN(RString) name, IN(RbyteArray) b, int off, int len) |
This method is not implemented. | |
virtual RClass | findClass (IN(RString) name, bool nothrow=false) throw ( RClassNotFoundException ) |
Try to find a class by name. | |
virtual bool | loadClassLibrary (IN(RString) classname) |
virtual RString | findLibrary (IN(RString) libname) |
Try to find and load a library corresponding the package name. | |
virtual RString | findLibrary2 (IN(RString) libname) |
virtual RClass | findLoadedClass (IN(RString) name, bool nothrow=true) throw ( RClassNotFoundException ) |
find a class, which is already loaded | |
virtual RClass | findSystemClass (IN(RString) name) throw ( RClassNotFoundException ) |
just return findClass(name) | |
virtual RPackage | getPackage (IN(RString) name) |
Method is not implemented. | |
virtual RPackageArray | getPackages () |
Method is not implemented. | |
virtual RClassLoader | getParent () |
virtual acdk::io::RFile | findResource (IN(RString) name) |
return a ressource located by name otherwise Nil | |
virtual acdk::util::RIterator | findResources (IN(RString) name) |
return iterator to acdk::io::RFile | |
virtual acdk::io::RFile | getResource (IN(RString) name) |
Different to Java this method returns a File (which may also contain URL). | |
virtual acdk::io::RReader | getResourceAsStream (IN(RString) name) |
is equaly to getResource(name)->getReader() | |
virtual acdk::util::RIterator | getResources (IN(RString) name) |
return iterator to acdk::io::RFile | |
virtual RClass | loadClass (IN(RString) name) throw ( RClassNotFoundException ) |
virtual RClass | loadClass (IN(RString) name, bool resolve) throw ( RClassNotFoundException ) |
virtual acdk::lang::reflect::RUnit | loadUnit (IN(RString) name) throw ( RClassNotFoundException ) |
try to load Unit. | |
virtual bool | loadMetaInfoLibrary (IN(RString) classname) |
try to load metainfo library of given class | |
virtual bool | loadDmiProxyLibrary (IN(RString) classname) |
try to load dmi proxy library of given class | |
virtual void | resolveClass (IN(RClass) c) |
Method has no functionality. | |
virtual void | setSigners (IN(RClass) c, IN(RObjectArray) signers) |
Method is not implemented. | |
void | registerClassLoader (IN(RClassLoader) classLoader) |
Static Public Member Functions | |
acdk::io::RFile | getSystemResource (IN(RString) name) |
acdk::io::RReader | getSystemResourceAsStream (IN(RString) name) |
returns getSystemClassLoader()->getResourceAsStream() | |
acdk::util::RIterator | getSystemResources (IN(RString) name) |
return getSystemClassLoader()->getSystemResources(name) | |
RClassLoader | getSystemClassLoader () |
The normal ClassLoader which loads native ACDK classes and libraries. | |
Protected Member Functions | |
bool | loadExtInfoLibrary (IN(RString) classname, IN(RString) sufix) |
Static Protected Member Functions | |
OUT (RClassLoader) _getSystemClassLoader() | |
Protected Attributes | |
RClassLoader | _parent |
RClassLoaderArray | _registeredClassLoader |
|
|
|
|
|
This method is not implemented.
|
|
Try to find a class by name. If the class currently is not loaded it uses the acdk::lang::SharedLibrary to find a shared library which mapps the full class name or parts of the namespace. It uses following pattern: findClass(acdk::security::GeneralSecurityException) try to load following librares: Unix: acdk_security_GeneralSecurityException.so acdk_security.so acdk.so Windows (Debug-Release): acdk_security_GeneralSecurityException_d.dll acdk_security_d.dll acdk_d.dll
Reimplemented in acdk::cfgscript::ScriptClassLoader. |
|
Try to find and load a library corresponding the package name. this method consul the property acdk.lang.ClassLoaderAliase if there are any aliase. It checks param libname starts with a key of an alias. if yes it replaces the beginning of libname with the value defined in the property.
|
|
|
|
find a class, which is already loaded
Reimplemented in acdk::cfgscript::ScriptClassLoader. |
|
return a ressource located by name otherwise Nil
|
|
return iterator to acdk::io::RFile
Reimplemented in acdk::cfgscript::ScriptClassLoader. |
|
just return findClass(name)
|
|
Method is not implemented.
|
|
Method is not implemented.
|
|
|
|
Different to Java this method returns a File (which may also contain URL).
|
|
is equaly to getResource(name)->getReader()
|
|
return iterator to acdk::io::RFile
|
|
The normal ClassLoader which loads native ACDK classes and libraries.
|
|
|
|
returns getSystemClassLoader()->getResourceAsStream()
|
|
return getSystemClassLoader()->getSystemResources(name)
|
|
|
|
|
|
Reimplemented in acdk::cfgscript::ScriptClassLoader. |
|
try to load dmi proxy library of given class
Reimplemented in acdk::cfgscript::ScriptClassLoader. |
|
|
|
try to load metainfo library of given class
Reimplemented in acdk::cfgscript::ScriptClassLoader. |
|
try to load Unit. Tries to load also shared library |
|
|
|
|
|
Method has no functionality.
Reimplemented in acdk::cfgscript::ScriptClassLoader. |
|
Method is not implemented.
|
|
|
|
|