public class ObjectFactory
extends java.lang.Object
| Constructor and Description |
|---|
ObjectFactory() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
instantiate(java.lang.String classname,
java.util.Properties info,
boolean tryString,
java.lang.String stringarg)
Instantiates a class using the appropriate constructor.
|
public static java.lang.Object instantiate(java.lang.String classname,
java.util.Properties info,
boolean tryString,
java.lang.String stringarg)
throws java.lang.ClassNotFoundException,
java.lang.SecurityException,
java.lang.NoSuchMethodException,
java.lang.IllegalArgumentException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
classname - name of the class to instantiateinfo - parameter to pass as PropertiestryString - whether to look for a single String argument constructorstringarg - parameter to pass as Stringjava.lang.ClassNotFoundException - if something goes wrongjava.lang.SecurityException - if something goes wrongjava.lang.NoSuchMethodException - if something goes wrongjava.lang.IllegalArgumentException - if something goes wrongjava.lang.InstantiationException - if something goes wrongjava.lang.IllegalAccessException - if something goes wrongjava.lang.reflect.InvocationTargetException - if something goes wrongCopyright © 2021 PostgreSQL Global Development Group. All rights reserved.