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.DefaultDependenciesis the default implementation of theDocumentProcessorDocumentProcessor.Dependenciesinterface.
-
-
Constructor Summary
Constructors Constructor Description DefaultDependencies()Constructs aDocumentProcessor.DefaultDependencies.DefaultDependencies(NamespaceHandler handler)Constructs aDocumentProcessor.DefaultDependencieswith a defaultNamespaceHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoadergetContextClassLoader()Obtains theClassLoaderto use for dynamically loading classes during processing.NamespaceHandlergetDefaultNamespaceHandler()TheNamespaceHandlerfor the default (ie: unspecified) xml namespace.ParameterResolvergetDefaultParameterResolver()Obtains the defaultParameterResolverthat may be used for resolving externally defined configuration parameters, like those from the operating system or container.ExpressionParsergetExpressionParser()Obtains theExpressionParserto use for parsingExpressions during document processing.ResourceRegistrygetResourceRegistry()Obtains theResourceRegistryfor theDocumentProcessor.DocumentProcessor.DefaultDependenciessetClassLoader(ClassLoader classLoader)Sets theClassLoaderthat will be used to dynamically load classes.DocumentProcessor.DefaultDependenciessetDefaultNamespaceHandler(NamespaceHandler handler)Sets theNamespaceHandlerfor the default namespace of documents to be processedDocumentProcessor.DefaultDependenciessetDefaultParameterResolver(ParameterResolver parameterResolver)Sets the defaultParameterResolverto use for resolving externally defined (ie: operating system/container) level parameters.DocumentProcessor.DefaultDependenciessetExpressionParser(ExpressionParser parser)Sets theExpressionParserto use for parsingExpressions during document processing.DocumentProcessor.DefaultDependenciessetResourceRegistry(ResourceRegistry registry)Sets theResourceRegistrythat will be used when processing a document.
-
-
-
Constructor Detail
-
DefaultDependencies
public DefaultDependencies()
Constructs aDocumentProcessor.DefaultDependencies.
-
DefaultDependencies
public DefaultDependencies(NamespaceHandler handler)
Constructs aDocumentProcessor.DefaultDependencieswith a defaultNamespaceHandler.- Parameters:
handler- the defaultNamespaceHandler
-
-
Method Detail
-
getResourceRegistry
public ResourceRegistry getResourceRegistry()
Obtains theResourceRegistryfor theDocumentProcessor.- Specified by:
getResourceRegistryin interfaceDocumentProcessor.Dependencies- Returns:
- a
ResourceRegistry
-
getContextClassLoader
public ClassLoader getContextClassLoader()
Obtains theClassLoaderto use for dynamically loading classes during processing.- Specified by:
getContextClassLoaderin interfaceDocumentProcessor.Dependencies- Returns:
- the
ClassLoader
-
getDefaultNamespaceHandler
public NamespaceHandler getDefaultNamespaceHandler()
TheNamespaceHandlerfor the default (ie: unspecified) xml namespace.- Specified by:
getDefaultNamespaceHandlerin interfaceDocumentProcessor.Dependencies- Returns:
- the default
NamespaceHandler
-
getExpressionParser
public ExpressionParser getExpressionParser()
Obtains theExpressionParserto use for parsingExpressions during document processing.- Specified by:
getExpressionParserin interfaceDocumentProcessor.Dependencies- Returns:
- the
ExpressionParser
-
getDefaultParameterResolver
public ParameterResolver 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
public DocumentProcessor.DefaultDependencies setResourceRegistry(ResourceRegistry registry)
Sets theResourceRegistrythat will be used when processing a document.- Parameters:
registry- theResourceRegistry- Returns:
- the
DocumentProcessor.DefaultDependenciesso that fluent-method-chaining may be used
-
setClassLoader
public DocumentProcessor.DefaultDependencies setClassLoader(ClassLoader classLoader)
Sets theClassLoaderthat will be used to dynamically load classes.- Parameters:
classLoader- theClassLoader- Returns:
- the
DocumentProcessor.DefaultDependenciesso that fluent-method-chaining may be used
-
setDefaultNamespaceHandler
public DocumentProcessor.DefaultDependencies setDefaultNamespaceHandler(NamespaceHandler handler)
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
public DocumentProcessor.DefaultDependencies setExpressionParser(ExpressionParser parser)
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
-
-