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 Details

    • log

      protected org.apache.logging.log4j.Logger log
  • Constructor Details

    • AbstractDigesterRule

      public AbstractDigesterRule()
  • Method Details

    • getObjectName

      protected String 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

      protected final void addLocalWarning(String msg)
      Add a configuration warning message to the current configuration. Display location information conform IbisException when the cause is a SAXParseException.
    • addGlobalWarning

      protected final void addGlobalWarning(String message)
      Add a global message to the application
    • addSuppressibleWarning

      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.
      Parameters:
      msg - Message to add
      suppressionKey - SuppressKeys to check.
    • getClassLoader

      protected final ClassLoader getClassLoader()
      Returns:
      an IConfigurationClassLoader.
    • getBean

      protected Object getBean()
      Returns:
      the currently handled object, aka TOP object
    • getBeanClass

      protected final Class<?> getBeanClass()
      Returns:
      the resolved class of the current object
    • resolveValue

      protected final String resolveValue(String value)
      Parameters:
      value - or values to resolve
      Returns:
      The resolved value(s) using the configuration AppConstants
    • begin

      public final void begin(String uri, String elementName, Attributes attributes) throws Exception
      Overrides:
      begin in class org.apache.commons.digester3.Rule
      Throws:
      Exception
    • end

      public void end(String namespace, String name) throws Exception
      Overrides:
      end in class org.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 interface org.springframework.context.ApplicationContextAware
    • setConfigurationWarnings

      public void setConfigurationWarnings(ConfigurationWarnings configurationWarnings)
    • setApplicationWarnings

      public void setApplicationWarnings(ApplicationWarnings applicationWarnings)