Package io.meeds.commons.digest.plugin
Class DigestLinePlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
io.meeds.commons.digest.plugin.DigestLinePlugin
- All Implemented Interfaces:
DigestLineProvider,org.exoplatform.container.component.ComponentPlugin
public abstract class DigestLinePlugin
extends org.exoplatform.container.component.BaseComponentPlugin
implements DigestLineProvider
The base of the digest line providers the addons declare in their own kernel
configuration, next to their category:
<external-component-plugins>
<target-component>io.meeds.commons.digest.DigestCategoryRegistry</target-component>
<component-plugin>
<name>news.lines</name>
<set-method>addLineProvider</set-method>
<type>io.meeds.content.news.digest.NewsDigestLinePlugin</type>
<init-params>
<values-param>
<name>pluginIds</name>
<value>PostNewsNotificationPlugin</value>
</values-param>
</init-params>
</component-plugin>
</external-component-plugins>
A kernel plugin on purpose, like the category: the kernel container is
shared by every webapp, so the line provider reaches the digest whether or
not the addon uses Spring. The subclass looks its services up in the
container when it needs them.-
Field Summary
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDigestLinePlugin(org.exoplatform.container.xml.InitParams params) -
Method Summary
Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.meeds.commons.digest.plugin.DigestLineProvider
buildLine
-
Constructor Details
-
DigestLinePlugin
protected DigestLinePlugin(org.exoplatform.container.xml.InitParams params)
-
-
Method Details
-
getPluginIds
- Specified by:
getPluginIdsin interfaceDigestLineProvider- Returns:
- the ids of the notification types this provider builds the lines of
-