Package com.tangosol.config.xml
Class DocumentProcessor
java.lang.Object
com.tangosol.config.xml.DocumentProcessor
A
DocumentProcessor
is responsible for processing in an XmlDocument
to produce a resulting
configured resource.
During the processing of the XmlDocument
, the provided ResourceRegistry
may be
accessed/mutated.
- Since:
- Coherence 12.1.2
- Author:
- bo 2011.06.15
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
TheDocumentProcessor.DefaultDependencies
is the default implementation of theDocumentProcessor
DocumentProcessor.Dependencies
interface.static interface
-
Constructor Summary
ConstructorDescriptionDocumentProcessor
(DocumentProcessor.Dependencies dependencies) Construct aDocumentProcessor
. -
Method Summary
Modifier and TypeMethodDescription<T> T
process
(XmlDocumentReference refDocument, XmlDocumentReference... aOverrides) Processes theXmlDocument
located at the specifiedXmlDocumentReference
.
-
Constructor Details
-
DocumentProcessor
Construct aDocumentProcessor
.- Parameters:
dependencies
- theDocumentProcessor.Dependencies
for theDocumentProcessor
-
-
Method Details
-
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
-