XPathFactory#newInstance(String).
| Modifier and Type | Field and Description |
|---|---|
| private static final Properties | cacheProps
Cache properties for performance. |
| private final ClassLoader | classLoader
|
| private static boolean | debug
debug support code. |
| private static final String | |
| private static volatile boolean | firstTime
First time requires initialization overhead. |
| private static final Class |
| Access | Constructor and Description |
|---|---|
| public | XPathFactoryFinder(ClassLoader
to be used to load resource and loader)XPathFactory
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 XPathFactory | Returns: XPathFactory for the given object model.identifies the object model. uri)Lookup a |
| private Class | Returns: Created class ornull.Name of class to create. className)Create class using appropriate ClassLoader. |
| pack-priv XPathFactory | 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 XPathFactory | Returns: An XPathFactory supporting the specified object model, or null if none is found.URI of object model to support. objectModel)Finds a service provider subclass of XPathFactory that supports the given object model using the ServiceLoader. |
| public XPathFactory | Returns: null if the callee fails to create one.Identifies the underlying object model. uri)Creates a new |
| private static String |
| cacheProps | back to summary |
|---|---|
| private static final Properties cacheProps Cache properties for performance. | |
| 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 | |
| firstTime | back to summary |
|---|---|
| private static volatile boolean firstTime First time requires initialization overhead. | |
| SERVICE_CLASS | back to summary |
|---|---|
| private static final Class<XPathFactory> SERVICE_CLASS | |
| XPathFactoryFinder | back to summary |
|---|---|
| public XPathFactoryFinder(ClassLoader loader) Constructor that specifies
| |
| _newFactory | back to summary |
|---|---|
| private XPathFactory _newFactory(String uri) throws XPathFactoryConfigurationException Lookup a
| |
| createClass | back to summary |
|---|---|
| private Class Create class using appropriate ClassLoader. | |
| createInstance | back to summary |
|---|---|
| pack-priv XPathFactory createInstance(String className) throws XPathFactoryConfigurationException 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 XPathFactory findServiceProvider(final String objectModel) throws XPathFactoryConfigurationException Finds a service provider subclass of XPathFactory that supports the given object model using the ServiceLoader.
| |
| newFactory | back to summary |
|---|---|
| public XPathFactory newFactory(String uri) throws XPathFactoryConfigurationException Creates a new
| |
| which | back to summary |
|---|---|
| private static String which(Class<?> clazz) | |