com.jalios.jcms.policy
Class BasicPluginPolicyFilter

java.lang.Object
  extended by com.jalios.jcms.policy.AbstractPolicyFilter
      extended by com.jalios.jcms.policy.BasicPluginPolicyFilter
All Implemented Interfaces:
PluginComponent, PluginPolicyFilter, PolicyFilter, Comparable

public class BasicPluginPolicyFilter
extends AbstractPolicyFilter
implements PluginPolicyFilter, PluginComponent

This class provides hooks for plugin life cycle.

Since:
jcms-5.7.0
Version:
$Revision: 19809 $
Author:
Jean-Philippe Encausse

Field Summary
static String REVISION
           
 
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
order
 
Constructor Summary
BasicPluginPolicyFilter()
           
 
Method Summary
 void deployPlugin(Plugin plugin, String archiveName)
          Called after given plugin deployement to execute specific actions
 boolean init(Plugin plugin)
          Initialize the component with the given plugin configuration
 void setupPlugin(Plugin plugin)
          Called after given plugin setup to execute specific actions
 void 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

BasicPluginPolicyFilter

public BasicPluginPolicyFilter()
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 interface PluginComponent
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 interface PluginPolicyFilter
Parameters:
plugin - the setuped plugin
See Also:
PluginPolicyFilter.setupPlugin(Plugin)

deployPlugin

public void deployPlugin(Plugin plugin,
                         String archiveName)
Description copied from interface: PluginPolicyFilter
Called after given plugin deployement to execute specific actions

Specified by:
deployPlugin in interface PluginPolicyFilter
Parameters:
plugin - the deployed plugin
archiveName - the deployed archive name
See Also:
PluginPolicyFilter.deployPlugin(Plugin,String)

uninstallPlugin

public void uninstallPlugin(Plugin plugin)
Description copied from interface: PluginPolicyFilter
Called after given plugin uninstall to execute specific actions

Specified by:
uninstallPlugin in interface PluginPolicyFilter
Parameters:
plugin - the uninstaled plugin
See Also:
PluginPolicyFilter.uninstallPlugin(Plugin)


Copyright © 2001-2010 Jalios SA. All Rights Reserved.