Package com.jalios.jcms.policy
Class BasicPluginPolicyFilter
- java.lang.Object
-
- com.jalios.jcms.policy.AbstractPolicyFilter
-
- com.jalios.jcms.policy.BasicPluginPolicyFilter
-
- All Implemented Interfaces:
PluginComponent
,PluginPolicyFilter
,PolicyFilter
,java.lang.Comparable
public class BasicPluginPolicyFilter extends AbstractPolicyFilter implements PluginPolicyFilter, PluginComponent
This class provides hooks for plugin life cycle.- Since:
- jcms-5.7.0
- Author:
- Jean-Philippe Encausse
-
-
Field Summary
-
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
order
-
-
Constructor Summary
Constructors Constructor Description BasicPluginPolicyFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deployPlugin(Plugin plugin, java.lang.String archiveName)
Called after given plugin deployement to execute specific actionsvoid
disablePlugin(Plugin plugin)
Called when a plugin is disabled.void
enablePlugin(Plugin plugin)
Called when a plugin is enabled.boolean
init(Plugin plugin)
Initialize the component with the given plugin configurationvoid
setupPlugin(Plugin plugin)
Called after given plugin setup to execute specific actionsvoid
uninstallPlugin(Plugin plugin)
Called after given plugin uninstall to execute specific actions-
Methods inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
compareTo, equals, getOrder, setOrder
-
-
-
-
Method Detail
-
init
public boolean init(Plugin plugin)
Description copied from interface:PluginComponent
Initialize the component with the given plugin configuration- Specified by:
init
in interfacePluginComponent
- Parameters:
plugin
- the calling plugin- Returns:
- true if the component has been correctly initialized.
- Since:
- jcms-5.7.1
- See Also:
PluginComponent.init(Plugin)
-
setupPlugin
public void setupPlugin(Plugin plugin)
Description copied from interface:PluginPolicyFilter
Called after given plugin setup to execute specific actions- Specified by:
setupPlugin
in interfacePluginPolicyFilter
- Parameters:
plugin
- the setuped plugin- See Also:
PluginPolicyFilter.setupPlugin(Plugin)
-
deployPlugin
public void deployPlugin(Plugin plugin, java.lang.String archiveName)
Description copied from interface:PluginPolicyFilter
Called after given plugin deployement to execute specific actions- Specified by:
deployPlugin
in interfacePluginPolicyFilter
- Parameters:
plugin
- the deployed pluginarchiveName
- the deployed archive name- See Also:
PluginPolicyFilter.deployPlugin(Plugin,String)
-
enablePlugin
public void enablePlugin(Plugin plugin)
Description copied from interface:PluginPolicyFilter
Called when a plugin is enabled.- Specified by:
enablePlugin
in interfacePluginPolicyFilter
- Parameters:
plugin
- the enabled plugin- See Also:
PluginPolicyFilter.enablePlugin(Plugin)
-
disablePlugin
public void disablePlugin(Plugin plugin)
Description copied from interface:PluginPolicyFilter
Called when a plugin is disabled.- Specified by:
disablePlugin
in interfacePluginPolicyFilter
- Parameters:
plugin
- the disabled plugin- See Also:
PluginPolicyFilter.disablePlugin(Plugin)
-
uninstallPlugin
public void uninstallPlugin(Plugin plugin)
Description copied from interface:PluginPolicyFilter
Called after given plugin uninstall to execute specific actions- Specified by:
uninstallPlugin
in interfacePluginPolicyFilter
- Parameters:
plugin
- the uninstaled plugin- See Also:
PluginPolicyFilter.uninstallPlugin(Plugin)
-
-