Class DigesterRuleBase

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
    Direct Known Subclasses:
    ValidateAttributeRule

    public abstract class DigesterRuleBase
    extends org.apache.commons.digester3.Rule
    implements org.springframework.context.ApplicationContextAware
    Author:
    Niels Meijer
    • Field Detail

      • log

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

      • DigesterRuleBase

        public DigesterRuleBase()
    • Method Detail

      • 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
      • addSuppressableWarning

        protected final void addSuppressableWarning​(String msg,
                                                    SuppressKeys suppressionKey)
        Add a warning message to the current configuration, unless the suppression key is supporessed in the configuration.
        Parameters:
        msg - Message to add
        suppressionKey - SuppressKeys to check.
      • 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
      • 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()
      • 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)