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
TheDocumentProcessor.DefaultDependencies
is the default implementation of theDocumentProcessor
DocumentProcessor.Dependencies
interface.
-
-
Constructor Summary
Constructors Constructor Description DefaultDependencies()
Constructs aDocumentProcessor.DefaultDependencies
.DefaultDependencies(NamespaceHandler handler)
Constructs aDocumentProcessor.DefaultDependencies
with a defaultNamespaceHandler
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoader
getContextClassLoader()
Obtains theClassLoader
to use for dynamically loading classes during processing.NamespaceHandler
getDefaultNamespaceHandler()
TheNamespaceHandler
for the default (ie: unspecified) xml namespace.ParameterResolver
getDefaultParameterResolver()
Obtains the defaultParameterResolver
that may be used for resolving externally defined configuration parameters, like those from the operating system or container.ExpressionParser
getExpressionParser()
Obtains theExpressionParser
to use for parsingExpression
s during document processing.ResourceRegistry
getResourceRegistry()
Obtains theResourceRegistry
for theDocumentProcessor
.DocumentProcessor.DefaultDependencies
setClassLoader(ClassLoader classLoader)
Sets theClassLoader
that will be used to dynamically load classes.DocumentProcessor.DefaultDependencies
setDefaultNamespaceHandler(NamespaceHandler handler)
Sets theNamespaceHandler
for the default namespace of documents to be processedDocumentProcessor.DefaultDependencies
setDefaultParameterResolver(ParameterResolver parameterResolver)
Sets the defaultParameterResolver
to use for resolving externally defined (ie: operating system/container) level parameters.DocumentProcessor.DefaultDependencies
setExpressionParser(ExpressionParser parser)
Sets theExpressionParser
to use for parsingExpression
s during document processing.DocumentProcessor.DefaultDependencies
setResourceRegistry(ResourceRegistry registry)
Sets theResourceRegistry
that will be used when processing a document.
-
-
-
Constructor Detail
-
DefaultDependencies
public DefaultDependencies()
Constructs aDocumentProcessor.DefaultDependencies
.
-
DefaultDependencies
public DefaultDependencies(NamespaceHandler handler)
Constructs aDocumentProcessor.DefaultDependencies
with a defaultNamespaceHandler
.- Parameters:
handler
- the defaultNamespaceHandler
-
-
Method Detail
-
getResourceRegistry
public ResourceRegistry getResourceRegistry()
Obtains theResourceRegistry
for theDocumentProcessor
.- Specified by:
getResourceRegistry
in interfaceDocumentProcessor.Dependencies
- Returns:
- a
ResourceRegistry
-
getContextClassLoader
public ClassLoader getContextClassLoader()
Obtains theClassLoader
to use for dynamically loading classes during processing.- Specified by:
getContextClassLoader
in interfaceDocumentProcessor.Dependencies
- Returns:
- the
ClassLoader
-
getDefaultNamespaceHandler
public NamespaceHandler getDefaultNamespaceHandler()
TheNamespaceHandler
for the default (ie: unspecified) xml namespace.- Specified by:
getDefaultNamespaceHandler
in interfaceDocumentProcessor.Dependencies
- Returns:
- the default
NamespaceHandler
-
getExpressionParser
public ExpressionParser getExpressionParser()
Obtains theExpressionParser
to use for parsingExpression
s during document processing.- Specified by:
getExpressionParser
in interfaceDocumentProcessor.Dependencies
- Returns:
- the
ExpressionParser
-
getDefaultParameterResolver
public ParameterResolver 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
public DocumentProcessor.DefaultDependencies setResourceRegistry(ResourceRegistry registry)
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
public DocumentProcessor.DefaultDependencies setClassLoader(ClassLoader classLoader)
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
public DocumentProcessor.DefaultDependencies setDefaultNamespaceHandler(NamespaceHandler handler)
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
public DocumentProcessor.DefaultDependencies setExpressionParser(ExpressionParser parser)
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
-
-