Class ConfigurationDigester
java.lang.Object
org.frankframework.configuration.digester.ConfigurationDigester
- All Implemented Interfaces:
ConfigurationAware, org.springframework.beans.factory.Aware
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()Digest theConfiguration.xmlusing the configuration as the 'TOP' bean.voidDigest the providedconfigurationResourceusing the configuration as the 'TOP' bean.voiddigest(org.springframework.context.ApplicationContext applicationContext, Resource configurationResource, PropertyLoader properties) Digest the providedconfigurationResourceusing the providedApplicationContextas the 'TOP' bean.getConfigurationCanonicalizer(ContentHandler handler, String frankConfigXSD, ErrorHandler errorHandler) protected @Nullable ResourcegetConfigurationResource(Configuration configuration) @NonNull DigestergetDigester(org.springframework.context.ApplicationContext applicationContext) 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, org.springframework.context.ApplicationContext applicationContext, 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 ConfigurationAware
setConfiguration
-
Field Details
-
MIGRATION_REWRITE_LEGACY_CLASS_NAMES_KEY
- See Also:
-
-
Constructor Details
-
ConfigurationDigester
public ConfigurationDigester()
-
-
Method Details
-
getDigester
public @NonNull Digester getDigester(org.springframework.context.ApplicationContext applicationContext) throws ConfigurationException - Throws:
ConfigurationException
-
digest
Digest theConfiguration.xmlusing the configuration as the 'TOP' bean. This means each bean will be created/wired using theConfigurationContextthis class was made with. Each newly created bean will be 'injected' into it's parent using the.invalid reference
DigesterRuleFile- Throws:
ConfigurationException
-
digest
Digest the providedconfigurationResourceusing the configuration as the 'TOP' bean. This means each bean will be created/wired using theConfigurationContextthis class was made with. Each newly created bean will be 'injected' into it's parent using the.invalid reference
DigesterRuleFile- Throws:
ConfigurationException
-
digest
public void digest(org.springframework.context.ApplicationContext applicationContext, Resource configurationResource, PropertyLoader properties) throws ConfigurationException Digest the providedconfigurationResourceusing the providedApplicationContextas the 'TOP' bean. This means each bean will be created/wired using theApplicationContextthis class was made with. Each newly created bean will be 'injected' into it's parent using the.invalid reference
DigesterRuleFile- Throws:
ConfigurationException
-
getConfigurationResource
protected @Nullable Resource getConfigurationResource(Configuration configuration) throws ConfigurationException - Throws:
ConfigurationException
-
parseAndResolveEntitiesAndProperties
public void parseAndResolveEntitiesAndProperties(ContentHandler digester, org.springframework.context.ApplicationContext applicationContext, 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.
-