com.novell.emframe.dev
Class Plugin

java.lang.Object
  extended bycom.novell.emframe.dev.Plugin
Direct Known Subclasses:
DataHandler, Deletor, Move, PropertyBookPage, Rename

public abstract class Plugin
extends java.lang.Object

Abstract class to implement to be an iManager plug-in that is not Task based. Used mainly as a base class. Look for a specific class that implements Plugin to extend instead of implementing Plugin directly.
(ex. CreatorSilent, DataHandler, Deletor, Move, PropertyBookPage, RegistryHandler, Rename)

See Also:
CreatorSilent, DataHandler, Deletor, Move, PropertyBookPage, RegistryHandler, Rename

Constructor Summary
Plugin()
           
 
Method Summary
 void init(PluginContext context, org.jdom.Document doc)
          Initialize the plug-in to be ready for work.
static void isPluginAvailable(PluginContext context, org.jdom.Document doc)
          Checks to see if the plug-in is available to do work.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Plugin

public Plugin()
Method Detail

init

public void init(PluginContext context,
                 org.jdom.Document doc)
Initialize the plug-in to be ready for work.

Parameters:
context - TaskContext provides access to framework and session data (ex. locale)
doc - XML Document used to register the task with iManager

isPluginAvailable

public static void isPluginAvailable(PluginContext context,
                                     org.jdom.Document doc)
                              throws PluginException
Checks to see if the plug-in is available to do work. The plug-in can overwrite this method to do checks for things like supported devices, operating systems, etc.... If the plug-in is ready to do work, simply return. Otherwise, throw a PluginExeception with the message stating why the plug-in will not work.

Parameters:
context - TaskContext provides access to framework and session data (ex. locale)
doc - XML Document used to register the task with iManager
Throws:
PluginException - if the plugin is not available for work


API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated September 2 2004 0111.