This class was moved from the javax.xml.parsers.ObjectFactory
class and modified to be used as a general utility for creating objects
dynamically.
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | DEBUG
Set to true for debugging |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public static ClassLoader | |
| public static Class | findProviderClass(String className, boolean doFallback)
Find a Class using the same class loader for the ObjectFactory by default or boot class loader when Security Manager is in place |
| private static Class | findProviderClass(String className, ClassLoader cl, boolean doFallback)
Find a Class using the specified ClassLoader |
| public static Object | newInstance(String className, boolean doFallback)
Create an instance of a class using the same class loader for the ObjectFactory by default or boot class loader when Security Manager is in place |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG Set to true for debugging | |
| JAXP_INTERNAL | back to summary |
|---|---|
| private static final String JAXP_INTERNAL | |
| STAX_INTERNAL | back to summary |
|---|---|
| private static final String STAX_INTERNAL | |
| ObjectFactory | back to summary |
|---|---|
| public ObjectFactory() | |
| debugPrintln | back to summary |
|---|---|
| private static void debugPrintln(Supplier<String> msgGen) Prints a message to standard error if debugging is enabled. | |
| findClassLoader | back to summary |
|---|---|
| public static ClassLoader findClassLoader() Figure out which ClassLoader to use. For JDK 1.2 and later use the context ClassLoader. | |
| findProviderClass | back to summary |
|---|---|
| public static Class Find a Class using the same class loader for the ObjectFactory by default or boot class loader when Security Manager is in place | |
| findProviderClass | back to summary |
|---|---|
| private static Class Find a Class using the specified ClassLoader | |
| newInstance | back to summary |
|---|---|
| public static Object newInstance(String className, boolean doFallback) throws ConfigurationError Create an instance of a class using the same class loader for the ObjectFactory by default or boot class loader when Security Manager is in place | |