public class ConfigurationDigester extends Object implements org.springframework.context.ApplicationContextAware
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>
Configuration
Constructor and Description |
---|
ConfigurationDigester() |
Modifier and Type | Method and Description |
---|---|
void |
digest() |
ContentHandler |
getConfigurationCanonicalizer(ContentHandler writer) |
ContentHandler |
getConfigurationCanonicalizer(ContentHandler handler,
String frankConfigXSD,
ErrorHandler errorHandler) |
ContentHandler |
getStub4TesttoolContentHandler(ContentHandler handler,
Properties properties)
Get the contenthandler to stub configurations
If stubbing is disabled, the input ContentHandler is returned as-is
|
void |
parseAndResolveEntitiesAndProperties(ContentHandler digester,
Configuration configuration,
Resource resource,
Properties appConstants)
Performs an Identity-transform, which resolves entities with content from files found on the ClassPath.
|
public void digest() throws ConfigurationException
ConfigurationException
public void parseAndResolveEntitiesAndProperties(ContentHandler digester, Configuration configuration, Resource resource, Properties appConstants) throws IOException, SAXException, TransformerConfigurationException
public ContentHandler getConfigurationCanonicalizer(ContentHandler writer) throws IOException
IOException
public ContentHandler getConfigurationCanonicalizer(ContentHandler handler, String frankConfigXSD, ErrorHandler errorHandler) throws IOException
IOException
public ContentHandler getStub4TesttoolContentHandler(ContentHandler handler, Properties properties) throws IOException, TransformerConfigurationException
Copyright © 2023 Frank!Framework. All rights reserved.