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
Nested ClassesModifier and TypeClassDescriptionstatic classTheDocumentProcessor.DefaultDependenciesis the default implementation of theDocumentProcessorDocumentProcessor.Dependenciesinterface.static interface -
Constructor Summary
ConstructorsConstructorDescriptionDocumentProcessor(DocumentProcessor.Dependencies dependencies) Construct aDocumentProcessor. -
Method Summary
Modifier and TypeMethodDescription<T> Tprocess(XmlDocumentReference refDocument, XmlDocumentReference... aOverrides) Processes theXmlDocumentlocated at the specifiedXmlDocumentReference.
-
Constructor Details
-
DocumentProcessor
Construct aDocumentProcessor.- Parameters:
dependencies- theDocumentProcessor.Dependenciesfor theDocumentProcessor
-
-
Method Details
-
process
public <T> T process(XmlDocumentReference refDocument, XmlDocumentReference... aOverrides) throws ConfigurationException Processes theXmlDocumentlocated at the specifiedXmlDocumentReference.- Type Parameters:
T- the resource type- Parameters:
refDocument- theXmlDocumentReferenceaOverrides- reference overrides- Returns:
- a configured resource based on processing the root element (and children when required)
of the
XmlDocumentspecified by theXmlDocumentReference - Throws:
ConfigurationException- when a configuration problem was encountered
-