SchemaFactory#newInstance(String).
| Modifier and Type | Field and Description |
|---|---|
| private final ClassLoader | classLoader
|
| private static boolean | debug
debug support code. |
| private static final String | |
| private static final Class |
| Access | Constructor and Description |
|---|---|
| public | SchemaFactoryFinder(ClassLoader
to be used to load resource, loader)SchemaFactory, and
SchemaFactoryLoader implementations during
the resolution process.
If this parameter is null, the default system class loader
will be used.Constructor that specifies |
| Modifier and Type | Method and Description |
|---|---|
| private SchemaFactory | Returns: SchemaFactory for the given schemaLanguage.Schema language to lookup schemaLanguage)SchemaFactory for.Lookup a |
| private Class | Returns: Created class ornull.Name of class to create. className)Create class using appropriate ClassLoader. |
| pack-priv SchemaFactory | Returns: null if it fails. Error messages will be printed by this method.fully qualified class name to be instantiated. className)Creates an instance of the specified and returns it. |
| private void | |
| private static void | debugPrintln(Supplier<String>
Supplier function that returns debug message msgGen)Conditional debug printing. |
| private SchemaFactory | Returns: A SchemaFactory supporting the specified schema language, or null if none is found.The schema language for which we seek a factory. schemaLanguage)Finds a service provider subclass of SchemaFactory that supports the given schema language using the ServiceLoader. |
| public SchemaFactory | Returns: null if the callee fails to create one.See schemaLanguage)Schema Language table in SchemaFactory
for the list of available schema languages.Creates a new |
| private static String |
| classLoader | back to summary |
|---|---|
| private final ClassLoader classLoader
| |
| debug | back to summary |
|---|---|
| private static boolean debug debug support code. | |
| DEFAULT_PACKAGE | back to summary |
|---|---|
| private static final String DEFAULT_PACKAGE | |
| SERVICE_CLASS | back to summary |
|---|---|
| private static final Class<SchemaFactory> SERVICE_CLASS | |
| SchemaFactoryFinder | back to summary |
|---|---|
| public SchemaFactoryFinder(ClassLoader loader) Constructor that specifies
| |
| _newFactory | back to summary |
|---|---|
| private SchemaFactory _newFactory(String schemaLanguage) Lookup a
| |
| createClass | back to summary |
|---|---|
| private Class Create class using appropriate ClassLoader. | |
| createInstance | back to summary |
|---|---|
| pack-priv SchemaFactory createInstance(String className) Creates an instance of the specified and returns it.
| |
| debugDisplayClassLoader | back to summary |
|---|---|
| private void debugDisplayClassLoader() | |
| debugPrintln | back to summary |
|---|---|
| private static void debugPrintln(Supplier<String> msgGen) Conditional debug printing. | |
| findServiceProvider | back to summary |
|---|---|
| private SchemaFactory findServiceProvider(final String schemaLanguage) Finds a service provider subclass of SchemaFactory that supports the given schema language using the ServiceLoader.
| |
| newFactory | back to summary |
|---|---|
| public SchemaFactory newFactory(String schemaLanguage) Creates a new
| |
| which | back to summary |
|---|---|
| private static String which(Class<?> clazz) | |