artefaktur
software engineer &        architecture

 
 
 
 

class ScriptClassLoader

Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::cfgscript::ScriptClassLoader Class Reference

#include <ScriptClassLoader.h>

Inheritance diagram for acdk::cfgscript::ScriptClassLoader:

acdk::lang::ClassLoader acdk::lang::Object acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

implements a ClassLoader for CfgScript.

$ACDKHOME/cfg/csf/lib/namespace/namespace/Class.csf


Public Member Functions

 ScriptClassLoader ()
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 RClass findLoadedClass (IN(RString) name, bool nothrow=true) throw ( RClassNotFoundException )
 find a class, which is already loaded

virtual acdk::util::RIterator findResources (IN(RString) name)
 return iterator to acdk::io::RFile

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.

bool loadClassLibrary (IN(RString) path, IN(RString) classname)

Constructor & Destructor Documentation

acdk::cfgscript::ScriptClassLoader::ScriptClassLoader  )  [inline]
 


Member Function Documentation

virtual RClass acdk::cfgscript::ScriptClassLoader::findClass IN(RString name,
bool  nothrow = false
throw ( RClassNotFoundException ) [virtual]
 

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

See also:
also ClassLoader::findLibrary
Parameters:
name of the class in one of following forms: acdk::security::GeneralSecurityException acdk.security.GeneralSecurityException acdk/security/GeneralSecurityException
nothrow,if true method does't throw ex if not found
Returns:
the loaded class if found otherwise Nil

Reimplemented from acdk::lang::ClassLoader.

virtual RClass acdk::cfgscript::ScriptClassLoader::findLoadedClass IN(RString name,
bool  nothrow = true
throw ( RClassNotFoundException ) [virtual]
 

find a class, which is already loaded

Parameters:
name of the class
Returns:
the Class corresponds to the name. Nil if the class is not loaded

Reimplemented from acdk::lang::ClassLoader.

virtual acdk::util::RIterator acdk::cfgscript::ScriptClassLoader::findResources IN(RString name  )  [virtual]
 

return iterator to acdk::io::RFile

Reimplemented from acdk::lang::ClassLoader.

bool acdk::cfgscript::ScriptClassLoader::loadClassLibrary IN(RString path,
IN(RString classname
 

virtual bool acdk::cfgscript::ScriptClassLoader::loadClassLibrary IN(RString classname  )  [virtual]
 

Reimplemented from acdk::lang::ClassLoader.

virtual bool acdk::cfgscript::ScriptClassLoader::loadDmiProxyLibrary IN(RString classname  )  [inline, virtual]
 

try to load dmi proxy library of given class

Returns:
false if no meta info library can be found

Reimplemented from acdk::lang::ClassLoader.

virtual bool acdk::cfgscript::ScriptClassLoader::loadMetaInfoLibrary IN(RString classname  )  [inline, virtual]
 

try to load metainfo library of given class

Returns:
false if no meta info library can be found

Reimplemented from acdk::lang::ClassLoader.

virtual void acdk::cfgscript::ScriptClassLoader::resolveClass IN(RClass c  )  [inline, virtual]
 

Method has no functionality.

Reimplemented from acdk::lang::ClassLoader.

 
Last modified 2005-05-08 18:31 by SYSTEM By Artefaktur, Ing. Bureau Kommer