Package com.tangosol.config.xml
Class DocumentProcessor
- java.lang.Object
-
- com.tangosol.config.xml.DocumentProcessor
-
public class DocumentProcessor extends Object
ADocumentProcessor
is responsible for processing in anXmlDocument
to produce a resulting configured resource.During the processing of the
XmlDocument
, the providedResourceRegistry
may be accessed/mutated.- Since:
- Coherence 12.1.2
- Author:
- bo 2011.06.15
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DocumentProcessor.DefaultDependencies
TheDocumentProcessor.DefaultDependencies
is the default implementation of theDocumentProcessor
DocumentProcessor.Dependencies
interface.static interface
DocumentProcessor.Dependencies
-
Constructor Summary
Constructors Constructor Description DocumentProcessor(DocumentProcessor.Dependencies dependencies)
Construct aDocumentProcessor
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
process(XmlDocumentReference refDocument, XmlDocumentReference... aOverrides)
Processes theXmlDocument
located at the specifiedXmlDocumentReference
.
-
-
-
Constructor Detail
-
DocumentProcessor
public DocumentProcessor(DocumentProcessor.Dependencies dependencies)
Construct aDocumentProcessor
.- Parameters:
dependencies
- theDocumentProcessor.Dependencies
for theDocumentProcessor
-
-
Method Detail
-
process
public <T> T process(XmlDocumentReference refDocument, XmlDocumentReference... aOverrides) throws ConfigurationException
Processes theXmlDocument
located at the specifiedXmlDocumentReference
.- Type Parameters:
T
- the resource type- Parameters:
refDocument
- theXmlDocumentReference
aOverrides
- reference overrides- Returns:
- a configured resource based on processing the root element (and children when required)
of the
XmlDocument
specified by theXmlDocumentReference
- Throws:
ConfigurationException
- when a configuration problem was encountered
-
-