Class AbstractDigesterRule
java.lang.Object
org.apache.commons.digester3.Rule
org.frankframework.configuration.digester.AbstractDigesterRule
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
ValidateAttributeRule
public abstract class AbstractDigesterRule
extends org.apache.commons.digester3.Rule
implements org.springframework.context.ApplicationContextAware
- Author:
- Niels Meijer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final void
addGlobalWarning
(String message) Add a global message to the applicationprotected final void
addLocalWarning
(String msg) Add a configuration warning message to the current configuration.protected final void
addSuppressibleWarning
(String msg, SuppressKeys suppressionKey) Add a warning message to the current configuration, unless the suppression key is suppressed in the configuration.final void
begin
(String uri, String elementName, Attributes attributes) void
protected Object
getBean()
protected final Class<?>
protected final ClassLoader
protected String
Returns the name of the object.protected abstract void
protected abstract void
protected final String
resolveValue
(String value) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setApplicationWarnings
(ApplicationWarnings applicationWarnings) void
setConfigurationWarnings
(ConfigurationWarnings configurationWarnings) Methods inherited from class org.apache.commons.digester3.Rule
body, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURI
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log
-
-
Constructor Details
-
AbstractDigesterRule
public AbstractDigesterRule()
-
-
Method Details
-
getObjectName
Returns the name of the object. In case a Spring proxy is being used, the name will be something like XsltPipe$$EnhancerBySpringCGLIB$$563e6b5d ClassUtils.getUserClass() makes sure the original class will be returned. -
addLocalWarning
Add a configuration warning message to the current configuration. Display location information conformIbisException
when the cause is aSAXParseException
. -
addGlobalWarning
Add a global message to the application -
addSuppressibleWarning
Add a warning message to the current configuration, unless the suppression key is suppressed in the configuration.- Parameters:
msg
- Message to addsuppressionKey
-SuppressKeys
to check.
-
getClassLoader
- Returns:
- an
IConfigurationClassLoader
.
-
getBean
- Returns:
- the currently handled object, aka TOP object
-
getBeanClass
- Returns:
- the resolved class of the current object
-
resolveValue
- Parameters:
value
- or values to resolve- Returns:
- The resolved value(s) using the configuration AppConstants
-
begin
- Overrides:
begin
in classorg.apache.commons.digester3.Rule
- Throws:
Exception
-
end
- Overrides:
end
in classorg.apache.commons.digester3.Rule
- Throws:
Exception
-
handleBean
protected abstract void handleBean() -
handleAttribute
protected abstract void handleAttribute(String name, String value, Map<String, String> attributes) throws Exception- Throws:
Exception
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
setConfigurationWarnings
-
setApplicationWarnings
-