|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.wbi.Plugin
A Plugin is a component that can be added to the Proxy to do content
tailoring. The Plugin is used as a wrapper around a set of megs that all
do related tailoring. There are four state methods of a Plugin signaled
by these four method calls: initialize(String) enable() disable()
terminate(String). Megs should be added to the Plugin by using the
addMeg(Meg) method usually in the initialize() call.
| Constructor Summary | |
Plugin()
Constructs a new empty Plugin. |
|
| Method Summary | |
void |
addMeg(Meg meg)
Add a Meg to the Plugin. |
void |
addMeg(Monitor monitor,
Editor editor)
Add a Monitor to the Plugin that will be run after the specified Editor. |
void |
disable()
Called when the Plugin is disabled after being enabled. |
void |
enable()
Called when the Plugin is enabled after being disabled. |
java.lang.String |
getClassName()
Get the class name for this plugin. |
java.lang.String |
getDescription()
Get the description of the Plugin. |
java.lang.String |
getDescriptiveName()
Get the descriptive name of the Plugin. |
Section |
getHomeSection()
Get this plugin's home Section |
java.lang.String |
getInstallName()
Get the install name which is just the name of the plugin. |
int |
getMajorVersion()
Get the major version number of the Plugin. |
int |
getMinorVersion()
Get the minor version number of the Plugin. |
java.lang.String |
getName()
|
java.lang.String |
getPluginName()
Get the fully-qualified class name of the Plugin. |
java.lang.String |
getRegistrationData()
Get the extra data specified in the registration file associated with this instance of the plugin. |
java.lang.String |
getSetupUrl()
Get the setup URL for this plugin. |
SystemContext |
getSystemContext()
Get the SystemContext object that was set at initialization time. |
void |
initialize()
Called when the Plugin is initialized. |
void |
initialize(java.lang.String initString)
Deprecated. Override initialize() instead and use getSystemContext() |
void |
initialize(SystemContext systemContext)
Deprecated. Override initialize() instead and use getSystemContext() |
boolean |
isEnabled()
Is the Plugin enabled? |
boolean |
isLoaded()
Determines if this Plugin is loaded by the Proxy. |
java.util.Enumeration |
megs()
Get all the Megs added to this Plugin. |
boolean |
removeMeg(Meg meg)
Remove a Meg from the Plugin. |
void |
setEnabled(boolean status)
Once a Plugin is loaded with the Proxy, this method can be used to set it's enabled state (and all it's associated Megs). |
void |
setSetupUrl(java.lang.String setupUrl)
Set the setup URL for this plugin. |
void |
setSystemContext(SystemContext systemContext)
Set the SystemContext object for this Plugin. |
void |
terminate()
Called when Plugin is terminated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Plugin()
| Method Detail |
public void initialize()
throws com.ibm.wbi.PluginException
Called when the Plugin is initialized. Plugin subclasses should override this method and do any Plugin-specific initialization that needs to be done. In many cases this includes instantiating Megs and adding them to the system by calling addMeg(...). The SystemContext variable is available through getSystemContext().
addMeg(com.ibm.wbi.Meg),
getSystemContext()
public void initialize(SystemContext systemContext)
throws com.ibm.wbi.PluginException
initialize() instead and use getSystemContext()
initialize(),
getSystemContext()public void initialize(java.lang.String initString)
initialize() instead and use getSystemContext()
initialize(),
getSystemContext()public void setSystemContext(SystemContext systemContext)
SystemContext object for this Plugin. This method should
only be called by the object administrating the plugins.systemContext - Holds "static" information that pertains to
the engine that the Meg is running under.
Implementations are encouraged to not store
this object put instead obtain it from the
getSystemContext() method.public SystemContext getSystemContext()
SystemContext object that was set at initialization time.
public void enable()
throws com.ibm.wbi.PluginException
com.ibm.wbi.PluginException - Thrown if an error occurs.
public void disable()
throws com.ibm.wbi.PluginException
com.ibm.wbi.PluginException - Thrown if an error occurs.
public void terminate()
throws com.ibm.wbi.PluginException
com.ibm.wbi.PluginException - Thrown if an error occurs.public final java.util.Enumeration megs()
public final void addMeg(Meg meg)
throws PluginError
initialize(String) method.
This method is synchronized to make sure that the initialization state of the Plugin changes atomically with respect to adding Megs.
meg - The Meg to add.PluginError - If any error occurs.
public final boolean removeMeg(Meg meg)
throws PluginError
This method is synchronized to make sure that the initialization state of the Plugin changes atomically with respect to adding/removing Megs.
meg - The Meg to remove.
public final void addMeg(Monitor monitor,
Editor editor)
throws PluginError
monitor - The Monitor to add.editor - The Editor to run Monitor after.PluginError - If any error occurs.public final int getMajorVersion()
public final int getMinorVersion()
public final java.lang.String getPluginName()
public final java.lang.String getDescriptiveName()
public final java.lang.String getDescription()
public final boolean isEnabled()
public final void setEnabled(boolean status)
status - The enabled status of the Plugin.public java.lang.String getInstallName()
public java.lang.String getName()
public java.lang.String getClassName()
public boolean isLoaded()
true if Plugin loaded normally; false
if there were problems loading the Plugin.public final java.lang.String getSetupUrl()
public final void setSetupUrl(java.lang.String setupUrl)
setupUrl - the URL for configuring this pluginpublic java.lang.String getRegistrationData()
public Section getHomeSection()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||