Class DefaultTagProcessorFactory

  • All Implemented Interfaces:
    TagProcessorFactory

    public class DefaultTagProcessorFactory
    extends Object
    implements TagProcessorFactory
    A Default implementation of the TagProcessorFactory that uses a map to store the TagProcessors. Within the same ClassLoaders this Processor can also load the processors when they are only stored with there fully qualified class names.
    Note: this implementation does not use namespaces (yet)!
    Author:
    redlab_b
    • Constructor Detail

      • DefaultTagProcessorFactory

        public DefaultTagProcessorFactory()
    • Method Detail

      • addProcessor

        public void addProcessor​(String tag,
                                 String className)
        Add an unloaded TagProcessor.
        Parameters:
        tag - the tag the processor with the given className maps to
        className - the fully qualified class name (class has to be found on classpath, will be loaded with Class.forName()
      • addProcessor

        public void addProcessor​(String tag,
                                 TagProcessor processor)
        Add a loaded TagProcessor.
        Parameters:
        tag - the tag the processor with the given className maps to
        processor - the TagProcessor
      • addProcessor

        public void addProcessor​(String className,
                                 String... tags)
        Add one tag processor that handles multiple tags.
        Parameters:
        className - the fully qualified class name (class has to be found on classpath)
        tags - list of tags this processor maps to.