Package org.silverpeas.core.html
Class WebPluginConsumerRegistry
- java.lang.Object
-
- org.silverpeas.core.html.WebPluginConsumerRegistry
-
public class WebPluginConsumerRegistry extends Object
Web plugin consumer registry.
It consists to map aSupportedWebPlugin
with aBiConsumer
which consumes anElementContainer
and the language as string.- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
add(SupportedWebPlugin plugin, BiConsumer<org.apache.ecs.ElementContainer,String> inclusion)
Adds a plugin into registry.protected static Optional<BiConsumer<org.apache.ecs.ElementContainer,String>>
get(String pluginName)
Gets a plugin into registry.
-
-
-
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.
-
-