addAlias(String anAlias, String anAliasedName) Adds an alias.
Parameters: anAlias - the new alias Parameters: anAliasedName - name that denotes an alias.
addPackagePath(String path) Adds a path to the internal search path.
Example:
addPackagePath("java.lang");
When looking for a class the package paths a searched in
the same order they were added.
public synchronized void addAlias(String anAlias, String anAliasedName)(Code)
Adds an alias.
Parameters: anAlias - the new alias Parameters: anAliasedName - name that denotes an alias. Note that thiscan be an alias itself, but circles are not allowed
addAliases
public synchronized void addAliases(Hashtable aliases)(Code)
Sets aliases from a Hastable. This method
is usefull when using Properties.
addPackagePath
public synchronized void addPackagePath(String path)(Code)
Adds a path to the internal search path.
Example:
addPackagePath("java.lang");
When looking for a class the package paths a searched in
the same order they were added.
Parameters: path - importpath
Returns a new instance of the class. Alias resloving is used.
Parameters: className - name or alias of the class ro instantiate exception: FactoryException - if the class could not be instantiated
Returns a new instance of the class. Alias resloving is used.
Parameters: className - name or alias of the class ro instantiate Parameters: aClassLoader - the ClassLoader to use exception: FactoryException - if the class could not be instantiated
Returns a java.lang-Class object for
an alias or classname. To achieve this first the internal
class cache is checked, then Class.forName(String)
is used with name and all package paths.
exception: ClassNotFoundException - if the class could not be found Parameters: name - the class's full name, the class name or an alias the searched class object
Returns a java.lang-Class object for
an alias or classname. To achieve this first the internal
class cache is checked, then Class.forName(String)
is used with name and all package paths.
exception: ClassNotFoundException - if the class could not be found Parameters: name - the class's full name, the class name or an alias Parameters: cl - ClassLoader to use. the searched class object