Class WebPluginConsumerRegistry


  • public class WebPluginConsumerRegistry
    extends Object
    Web plugin consumer registry.
    It consists to map a SupportedWebPlugin with a BiConsumer which consumes an ElementContainer and the language as string.
    Author:
    Yohann Chastagnier
    • Method Detail

      • add

        public static void add​(SupportedWebPlugin plugin,
                               BiConsumer<org.apache.ecs.ElementContainer,​String> inclusion)
        Adds a plugin into registry.
        Parameters:
        plugin - a plugin.
        inclusion - the inclusion.
      • get

        protected static Optional<BiConsumer<org.apache.ecs.ElementContainer,​String>> get​(String pluginName)
        Gets a plugin into registry.
        Parameters:
        pluginName - a plugin name.
        Returns:
        the consumer.