Language
Asturianu (ast)
Català (ca)
Čeština (cs)
Dansk (da)
Deutsch (de)
English [US] (en-US)
Español (es)
Esperanto (eo)
Eesti keel (et)
Euskara (eu)
Français (fr)
Gàidhlig (gd)
Galego (gl)
Italiano (it)
Lietuvių (lt)
Magyar (hu)
Nederlands (nl)
Norsk (no)
Polski (pl)
Português [do Brasil] (pt-BR)
Português [Europeu] (pt)
Română (ro)
Slovenčina (sk)
Slovenščina (sl)
Suomi (fi)
Svenska (sv)
Yкраїнська (uk)
Tiếng Việt (vi)
Türkçe (tr)
ኦሮሚኛ (om)
Հայերեն (hy)
Ελληνικά (el)
български език (bg)
Русский (ru)
Cрпски [ћирилицом] (sr)
עברית (he)
हिन्दी (hi)
ភាសាខ្មែរ (km)
தமிழ் (ta)
ภาษาไทย (th)
简体中文 (zh-CN)
正體中文 (zh-TW)
日本語 (ja)
한국어 (ko)
The Free and Open Productivity Suite
util
Class DynamicClassLoader
java.lang.Object
|
+--util.DynamicClassLoader
public class DynamicClassLoader extends Object
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
DynamicClassLoader
public DynamicClassLoader ()
forName
public static Class forName (String className)
throws ClassNotFoundException
This method returns a class created by its name
created by call to Class.forName()
.
This method must be overloaded if another loading
policy is required for Component and Interface
testing classes.
Parameters: className
- The name of the class to create.Returns: The created class.
getInstance
public Object getInstance (String className)
throws IllegalArgumentException
Get an instance of a class. The empty constructor is used.
Parameters: className
- The class to instantiate.Returns: The instance of the class.
getInstance
public Object getInstance (String className,
Object [] ctorArgs)
throws IllegalArgumentException
Get an instance of a class. The constructor matching to the
arguments is used and the arguments are given to this constructor.
Parameters: className
- The class to instantiate.ctorArgs
- Arguments for the constructor.Returns: The instance of the class.
getInstance
public Object getInstance (String className,
Class [] ctorClassTypes,
Object [] ctorArgs)
throws IllegalArgumentException
Get an instance of a class. The constructor matching to the
given calss types is used and the instance is created using the arguments
for the constructor.
Parameters: className
- The class to instantiate.ctorClassTypes
- The class types matching to the constructor.ctorArgs
- Arguments for the constructor.Returns: The instance of the class.