Package com.tangosol.config.xml
Class DocumentProcessor
- java.lang.Object
 - 
- com.tangosol.config.xml.DocumentProcessor
 
 
- 
public class DocumentProcessor extends Object
ADocumentProcessoris responsible for processing in anXmlDocumentto produce a resulting configured resource.During the processing of the
XmlDocument, the providedResourceRegistrymay be accessed/mutated.- Since:
 - Coherence 12.1.2
 - Author:
 - bo 2011.06.15
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocumentProcessor.DefaultDependenciesTheDocumentProcessor.DefaultDependenciesis the default implementation of theDocumentProcessorDocumentProcessor.Dependenciesinterface.static interfaceDocumentProcessor.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> Tprocess(XmlDocumentReference refDocument, XmlDocumentReference... aOverrides)Processes theXmlDocumentlocated at the specifiedXmlDocumentReference. 
 - 
 
- 
- 
Constructor Detail
- 
DocumentProcessor
public DocumentProcessor(DocumentProcessor.Dependencies dependencies)
Construct aDocumentProcessor.- Parameters:
 dependencies- theDocumentProcessor.Dependenciesfor theDocumentProcessor
 
 - 
 
- 
Method Detail
- 
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
 
 - 
 
 -