Search in sources :

Example 1 with AttributePropertyResolver

use of nl.nn.adapterframework.xml.AttributePropertyResolver in project iaf by ibissource.

the class ConfigurationDigester method parseAndResolveEntitiesAndProperties.

/**
 * Performs an Identity-transform, which resolves entities with content from files found on the ClassPath.
 * Resolve all non-attribute properties
 */
public void parseAndResolveEntitiesAndProperties(ContentHandler digester, Configuration configuration, Resource resource, Properties appConstants) throws IOException, SAXException, TransformerConfigurationException {
    ContentHandler handler;
    XmlWriter loadedHiddenWriter = new XmlWriter();
    handler = new PrettyPrintFilter(loadedHiddenWriter);
    handler = new AttributePropertyResolver(handler, appConstants, getPropsToHide(appConstants));
    handler = new XmlTee(digester, handler);
    handler = getStub4TesttoolContentHandler(handler, appConstants);
    handler = getConfigurationCanonicalizer(handler);
    handler = new OnlyActiveFilter(handler, appConstants);
    handler = new ElementPropertyResolver(handler, appConstants);
    XmlWriter originalConfigWriter = new XmlWriter();
    handler = new XmlTee(handler, originalConfigWriter);
    XmlUtils.parseXml(resource, handler);
    configuration.setOriginalConfiguration(originalConfigWriter.toString());
    configuration.setLoadedConfiguration(loadedHiddenWriter.toString());
}
Also used : XmlTee(nl.nn.adapterframework.stream.xml.XmlTee) AttributePropertyResolver(nl.nn.adapterframework.xml.AttributePropertyResolver) ElementPropertyResolver(nl.nn.adapterframework.xml.ElementPropertyResolver) OnlyActiveFilter(nl.nn.adapterframework.configuration.filters.OnlyActiveFilter) ContentHandler(org.xml.sax.ContentHandler) XmlWriter(nl.nn.adapterframework.xml.XmlWriter) PrettyPrintFilter(nl.nn.adapterframework.xml.PrettyPrintFilter)

Aggregations

OnlyActiveFilter (nl.nn.adapterframework.configuration.filters.OnlyActiveFilter)1 XmlTee (nl.nn.adapterframework.stream.xml.XmlTee)1 AttributePropertyResolver (nl.nn.adapterframework.xml.AttributePropertyResolver)1 ElementPropertyResolver (nl.nn.adapterframework.xml.ElementPropertyResolver)1 PrettyPrintFilter (nl.nn.adapterframework.xml.PrettyPrintFilter)1 XmlWriter (nl.nn.adapterframework.xml.XmlWriter)1 ContentHandler (org.xml.sax.ContentHandler)1