Package com.tangosol.config.xml
Class DocumentProcessor.DefaultDependencies
java.lang.Object
com.tangosol.config.xml.DocumentProcessor.DefaultDependencies
- All Implemented Interfaces:
DocumentProcessor.Dependencies
- Enclosing class:
DocumentProcessor
public static class DocumentProcessor.DefaultDependencies
extends Object
implements DocumentProcessor.Dependencies
The
DocumentProcessor.DefaultDependencies is the default implementation of the
DocumentProcessor DocumentProcessor.Dependencies interface.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aDocumentProcessor.DefaultDependencies.DefaultDependencies(NamespaceHandler handler) Constructs aDocumentProcessor.DefaultDependencieswith a defaultNamespaceHandler. -
Method Summary
Modifier and TypeMethodDescriptionObtains theClassLoaderto use for dynamically loading classes during processing.TheNamespaceHandlerfor the default (ie: unspecified) xml namespace.Obtains the defaultParameterResolverthat may be used for resolving externally defined configuration parameters, like those from the operating system or container.Obtains theExpressionParserto use for parsingExpressions during document processing.Obtains theResourceRegistryfor theDocumentProcessor.setClassLoader(ClassLoader classLoader) Sets theClassLoaderthat will be used to dynamically load classes.Sets theNamespaceHandlerfor the default namespace of documents to be processedsetDefaultParameterResolver(ParameterResolver parameterResolver) Sets the defaultParameterResolverto use for resolving externally defined (ie: operating system/container) level parameters.setExpressionParser(ExpressionParser parser) Sets theExpressionParserto use for parsingExpressions during document processing.setResourceRegistry(ResourceRegistry registry) Sets theResourceRegistrythat will be used when processing a document.
-
Constructor Details
-
DefaultDependencies
public DefaultDependencies()Constructs aDocumentProcessor.DefaultDependencies. -
DefaultDependencies
Constructs aDocumentProcessor.DefaultDependencieswith a defaultNamespaceHandler.- Parameters:
handler- the defaultNamespaceHandler
-
-
Method Details
-
getResourceRegistry
Obtains theResourceRegistryfor theDocumentProcessor.- Specified by:
getResourceRegistryin interfaceDocumentProcessor.Dependencies- Returns:
- a
ResourceRegistry
-
getContextClassLoader
Obtains theClassLoaderto use for dynamically loading classes during processing.- Specified by:
getContextClassLoaderin interfaceDocumentProcessor.Dependencies- Returns:
- the
ClassLoader
-
getDefaultNamespaceHandler
TheNamespaceHandlerfor the default (ie: unspecified) xml namespace.- Specified by:
getDefaultNamespaceHandlerin interfaceDocumentProcessor.Dependencies- Returns:
- the default
NamespaceHandler
-
getExpressionParser
Obtains theExpressionParserto use for parsingExpressions during document processing.- Specified by:
getExpressionParserin interfaceDocumentProcessor.Dependencies- Returns:
- the
ExpressionParser
-
getDefaultParameterResolver
Obtains the defaultParameterResolverthat may be used for resolving externally defined configuration parameters, like those from the operating system or container. ThisParameterResolveris used when one is not provide or one is required during parsing and processing the document.- Specified by:
getDefaultParameterResolverin interfaceDocumentProcessor.Dependencies- Returns:
- the default
ParameterResolver
-
setResourceRegistry
Sets theResourceRegistrythat will be used when processing a document.- Parameters:
registry- theResourceRegistry- Returns:
- the
DocumentProcessor.DefaultDependenciesso that fluent-method-chaining may be used
-
setClassLoader
Sets theClassLoaderthat will be used to dynamically load classes.- Parameters:
classLoader- theClassLoader- Returns:
- the
DocumentProcessor.DefaultDependenciesso that fluent-method-chaining may be used
-
setDefaultNamespaceHandler
Sets theNamespaceHandlerfor the default namespace of documents to be processed- Parameters:
handler- the defaultNamespaceHandler- Returns:
- the
DocumentProcessor.DefaultDependenciesso that fluent-method-chaining may be used
-
setExpressionParser
Sets theExpressionParserto use for parsingExpressions during document processing.- Parameters:
parser- theExpressionParser- Returns:
- the
DocumentProcessor.DefaultDependenciesso that fluent-method-chaining may be used
-
setDefaultParameterResolver
public DocumentProcessor.DefaultDependencies setDefaultParameterResolver(ParameterResolver parameterResolver) Sets the defaultParameterResolverto use for resolving externally defined (ie: operating system/container) level parameters.- Parameters:
parameterResolver- theParameterResolver- Returns:
- the
DocumentProcessor.DefaultDependenciesso that fluent-method-chaining may be used
-