scone.examples.observertest
Class ObserverTestPlugin

java.lang.Object
  extended by scone.Plugin
      extended by scone.examples.observertest.ObserverTestPlugin
All Implemented Interfaces:
java.util.Observer

public class ObserverTestPlugin
extends Plugin
implements java.util.Observer


Field Summary
 
Fields inherited from class scone.Plugin
ACCESSTRACKING, ACCESSTRACKING2, ADDPREAMBLE, CALCFINGERPRINT, CONSIDERINCLUSIONS, CONSIDERKEYWORDS, CONSIDERLINKS, COPYRIGHT, DECENT_HOST_CONDITION, HTDOCCONDITION, NO_HTDOCCONDITION, NOCACHE, NOREQUIREMENTS, PAGETIMEOUT, PARSEDOCUMENT, POSTDATA, RAS, RESOURCEGENERATOR, SAVEBODYTEXT, SAVESOURCECODE, USEPARSINGMEG
 
Constructor Summary
ObserverTestPlugin()
           
 
Method Summary
 int getRequirements()
          Define the requirements of this plugin by implementing this method.
 void init()
          Initializes a scone plugin.
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class scone.Plugin
addMeg, disable, displayConfigGUI, displayConfigGUI, enable, getProperties, getRasPort, init, saveProperties, terminate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObserverTestPlugin

public ObserverTestPlugin()
Method Detail

getRequirements

public int getRequirements()
Description copied from class: Plugin
Define the requirements of this plugin by implementing this method.
A plugin has to specify its requirements which can be as follows:
NOREQUIREMENTS use this keyword if your plugin does not require any feature.
PARSEDOCUMENT if required, the HtmlDocument objects will be created and filled.
ACCESSTRACKING if required, scone's usertracking feature is used
CONSIDERLINKS if required, Link Objects will be created and filled and LinkToken objects will be created
CONSIDERINCLUSIONS if required, INCLUSION objects will be created and filled.
CONSIDERKEYWORDS if required, Keyword objects will be created and filled. This feature will automatically require PARSEDOCUMENT.
ADDPREAMBLE causes the AddPreambleEditor to be added to the proxy.
RESOURCEGENERATOR causes the GeneralResourceGenerator to be added to the proxy
RAS The Remote Access Server is started.

These requirements have to be combined by the | operator: PARSEDOCUMENT | CONSIDERLINKS will cause scone to create HtmlDocument objects, Link objects and LinkToken objects.

If a feature is not required by any of the registered plugins, scone will not support it at runtime.

Specified by:
getRequirements in class Plugin
Returns:
the requirements

init

public void init()
Description copied from class: Plugin
Initializes a scone plugin. This method is called by the Scone framework.

Specified by:
init in class Plugin

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer