Package org.frankframework.configuration
Class ConfigurationDigester
java.lang.Object
org.frankframework.configuration.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.
Since 4.0.1, 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.
Since 4.1.1 the configuration.xml is parsed with a entityresolver that uses the 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>
- Author:
- Johan Verrips
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
digest()
getConfigurationCanonicalizer
(ContentHandler handler, String frankConfigXSD, ErrorHandler errorHandler) getDigester
(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-isvoid
parseAndResolveEntitiesAndProperties
(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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
-
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
-