|
Package com.dassault_systemes.catweb.base.util |
java.lang.Object
|
+-com.dassault_systemes.catweb.base.util.ClassFactory
Framework : PortalBase
Module : PLBbase
public class ClassFactory
This class offers services for the introspection and dynamic instanciation.
It is recommended to use it for Class creation rather than JDK call "Class.forName"
because it manages a class cache.
| public static Class |
createClassForName(String className)
Creates the Class object with the specified class name. |
| public static Object |
createNewInstanceForClassName(String className)
Creates a new instance of an object with the specified class name. |
createClassForName
public static Class createClassForName(String className)
Creates the Class object with the specified class name.
It is equivalent of: java.lang.Class.forName(classname)
- Parameters:
className
- - the class name of the class to create.
- See Also:
- java.lang.Class
createNewInstanceForClassName
public static Object createNewInstanceForClassName(String className)
Creates a new instance of an object with the specified class name.
It is equivalent of:
class = java.lang.Class.forName(classname)
class.newInstance()
- Parameters:
className
- - the class name of the class to create.
- See Also:
- java.lang.Class
Copyright © 2000, Dassault Systèmes. All rights reserved