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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
digest()
org.springframework.context.ApplicationContext
getConfigurationCanonicalizer
(ContentHandler handler, String frankConfigXSD, ErrorHandler errorHandler) 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.void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setConfigurationWarnings
(ConfigurationWarnings configurationWarnings) void
setDigesterRuleFile
(String digesterRuleFile)
-
Field Details
-
MIGRATION_REWRITE_LEGACY_CLASS_NAMES_KEY
- See Also:
-
-
Constructor Details
-
ConfigurationDigester
public ConfigurationDigester()
-
-
Method Details
-
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 -
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext() -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
setConfigurationWarnings
-
getDigesterRuleFile
-
setDigesterRuleFile
-