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
ConstructorDescriptionConstructs aDocumentProcessor.DefaultDependencies
.DefaultDependencies
(NamespaceHandler handler) Constructs aDocumentProcessor.DefaultDependencies
with a defaultNamespaceHandler
. -
Method Summary
Modifier and TypeMethodDescriptionObtains theClassLoader
to use for dynamically loading classes during processing.TheNamespaceHandler
for the default (ie: unspecified) xml namespace.Obtains the defaultParameterResolver
that may be used for resolving externally defined configuration parameters, like those from the operating system or container.Obtains theExpressionParser
to use for parsingExpression
s during document processing.Obtains theResourceRegistry
for theDocumentProcessor
.setClassLoader
(ClassLoader classLoader) Sets theClassLoader
that will be used to dynamically load classes.Sets theNamespaceHandler
for the default namespace of documents to be processedsetDefaultParameterResolver
(ParameterResolver parameterResolver) Sets the defaultParameterResolver
to use for resolving externally defined (ie: operating system/container) level parameters.setExpressionParser
(ExpressionParser parser) Sets theExpressionParser
to use for parsingExpression
s during document processing.setResourceRegistry
(ResourceRegistry registry) Sets theResourceRegistry
that will be used when processing a document.
-
Constructor Details
-
DefaultDependencies
public DefaultDependencies()Constructs aDocumentProcessor.DefaultDependencies
. -
DefaultDependencies
Constructs aDocumentProcessor.DefaultDependencies
with a defaultNamespaceHandler
.- Parameters:
handler
- the defaultNamespaceHandler
-
-
Method Details
-
getResourceRegistry
Obtains theResourceRegistry
for theDocumentProcessor
.- Specified by:
getResourceRegistry
in interfaceDocumentProcessor.Dependencies
- Returns:
- a
ResourceRegistry
-
getContextClassLoader
Obtains theClassLoader
to use for dynamically loading classes during processing.- Specified by:
getContextClassLoader
in interfaceDocumentProcessor.Dependencies
- Returns:
- the
ClassLoader
-
getDefaultNamespaceHandler
TheNamespaceHandler
for the default (ie: unspecified) xml namespace.- Specified by:
getDefaultNamespaceHandler
in interfaceDocumentProcessor.Dependencies
- Returns:
- the default
NamespaceHandler
-
getExpressionParser
Obtains theExpressionParser
to use for parsingExpression
s during document processing.- Specified by:
getExpressionParser
in interfaceDocumentProcessor.Dependencies
- Returns:
- the
ExpressionParser
-
getDefaultParameterResolver
Obtains the defaultParameterResolver
that may be used for resolving externally defined configuration parameters, like those from the operating system or container. ThisParameterResolver
is used when one is not provide or one is required during parsing and processing the document.- Specified by:
getDefaultParameterResolver
in interfaceDocumentProcessor.Dependencies
- Returns:
- the default
ParameterResolver
-
setResourceRegistry
Sets theResourceRegistry
that will be used when processing a document.- Parameters:
registry
- theResourceRegistry
- Returns:
- the
DocumentProcessor.DefaultDependencies
so that fluent-method-chaining may be used
-
setClassLoader
Sets theClassLoader
that will be used to dynamically load classes.- Parameters:
classLoader
- theClassLoader
- Returns:
- the
DocumentProcessor.DefaultDependencies
so that fluent-method-chaining may be used
-
setDefaultNamespaceHandler
Sets theNamespaceHandler
for the default namespace of documents to be processed- Parameters:
handler
- the defaultNamespaceHandler
- Returns:
- the
DocumentProcessor.DefaultDependencies
so that fluent-method-chaining may be used
-
setExpressionParser
Sets theExpressionParser
to use for parsingExpression
s during document processing.- Parameters:
parser
- theExpressionParser
- Returns:
- the
DocumentProcessor.DefaultDependencies
so that fluent-method-chaining may be used
-
setDefaultParameterResolver
public DocumentProcessor.DefaultDependencies setDefaultParameterResolver(ParameterResolver parameterResolver) Sets the defaultParameterResolver
to use for resolving externally defined (ie: operating system/container) level parameters.- Parameters:
parameterResolver
- theParameterResolver
- Returns:
- the
DocumentProcessor.DefaultDependencies
so that fluent-method-chaining may be used
-