| Constructor and Description |
|---|
ObjectFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
instantiate(String classname,
Properties info,
boolean tryString,
@Nullable String stringarg)
Instantiates a class using the appropriate constructor.
|
public static Object instantiate(String classname, Properties info, boolean tryString, @Nullable String stringarg) throws ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, 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 StringClassNotFoundException - if something goes wrongSecurityException - if something goes wrongNoSuchMethodException - if something goes wrongIllegalArgumentException - if something goes wrongInstantiationException - if something goes wrongIllegalAccessException - if something goes wrongInvocationTargetException - if something goes wrongCopyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.