Class ConfigurationDigester
java.lang.Object
org.frankframework.configuration.digester.ConfigurationDigester
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
public class ConfigurationDigester
extends Object
implements org.springframework.context.ApplicationContextAware
The configurationDigester reads the configuration.xml and the digester rules
in XML format and factors a Configuration.
The configuration.xml is first resolved using the resolver,
with tries to resolve ${variable} with the AppConstants, so that
both the values from the property files as the environment setting are available.
invalid input: '<'pThe configuration.xml is parsed with an EntityResolver that uses the configuration's classpath, which means that you may specify entities that will be resolved during parsing.
Example:<?xml version="1.0"?>
<!DOCTYPE configuration [
<!ENTITY HelloWorld SYSTEM "./ConfigurationHelloWorld.xml">
]>
<configuration name="HelloWorld">
&HelloWorld;
</configuration>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddigest()getConfigurationCanonicalizer(ContentHandler handler, String frankConfigXSD, ErrorHandler errorHandler) protected @Nullable ResourcegetConfigurationResource(Configuration configuration) @NonNull DigestergetDigester(Configuration configuration) getStub4TesttoolContentHandler(ContentHandler handler, IScopeProvider scope, PropertyLoader properties) Get the ContentHandler to stub configurations If stubbing is disabled, the input ContentHandler is returned as-is.voidparseAndResolveEntitiesAndProperties(ContentHandler digester, Configuration configuration, Resource resource, PropertyLoader properties) Performs an Identity-transform, which resolves entities with content from files found on the ClassPath.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
-
Field Details
-
MIGRATION_REWRITE_LEGACY_CLASS_NAMES_KEY
- See Also:
-
-
Constructor Details
-
ConfigurationDigester
public ConfigurationDigester()
-
-
Method Details
-
getDigester
- Throws:
ConfigurationException
-
digest
- Throws:
ConfigurationException
-
getConfigurationResource
protected @Nullable Resource getConfigurationResource(Configuration configuration) throws ConfigurationException - Throws:
ConfigurationException
-
parseAndResolveEntitiesAndProperties
public void parseAndResolveEntitiesAndProperties(ContentHandler digester, Configuration configuration, Resource resource, PropertyLoader properties) throws IOException, SAXException, TransformerConfigurationException Performs an Identity-transform, which resolves entities with content from files found on the ClassPath. Resolve all non-attribute properties -
getConfigurationCanonicalizer
- Throws:
IOException
-
getConfigurationCanonicalizer
public ContentHandler getConfigurationCanonicalizer(ContentHandler handler, String frankConfigXSD, ErrorHandler errorHandler) throws IOException - Throws:
IOException
-
getStub4TesttoolContentHandler
public ContentHandler getStub4TesttoolContentHandler(ContentHandler handler, IScopeProvider scope, PropertyLoader properties) throws IOException, TransformerConfigurationException Get the ContentHandler to stub configurations If stubbing is disabled, the input ContentHandler is returned as-is.
-