Interface COM.tolstoy.imagemeister.PluginFactoryI
All Packages Class Hierarchy This Package Previous Next Index
Interface COM.tolstoy.imagemeister.PluginFactoryI
- public interface PluginFactoryI
- extends Object
To add new plugins to ImageMeister, you must create a zip file containing the classes needed
by your plugin, and place the zip file containing the classes in ImageMeister's 'plugins'
directory. One of the classes in the zip file must be named 'IMPluginFactory', and it must
implement the following interface.
ImageMeister will create an instance of your 'IMPluginFactory' class, and call its methods
to load your plugin(s).
When the registerPlugins() method of your 'IMPluginFactory' class is called, your class
can then call the PluginManager.addPlugin() method to add its plugin(s).
-
copyright
-
-
getInterfaceVersion()
- Return the greatest interface version which this class knows about.
-
getPluginWatcher()
- Return an object implementing the PluginWatcherI interface, which will be called when each plugin
is loaded.
-
registerPlugins(int)
- This method will be called to allow your class to register its plugin(s).
copyright
public final static String copyright
getInterfaceVersion
public abstract int getInterfaceVersion()
- Return the greatest interface version which this class knows about.
registerPlugins
public abstract int registerPlugins(int interfaceVersion)
- This method will be called to allow your class to register its plugin(s). This method should
return the number of plugins successfully registered.
- Parameters:
- interfaceVersion - the interface version currently supported
getPluginWatcher
public abstract PluginWatcherI getPluginWatcher()
- Return an object implementing the PluginWatcherI interface, which will be called when each plugin
is loaded. May return null. See that interface for more information.
All Packages Class Hierarchy This Package Previous Next Index