Main Page
Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix ] Distribution Issues |
All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----com.tolstoy.imagemeister.PluginManager
Summary |
public class PluginManager extends java.lang.Object { // Fields 5 private static final String copyright; private static final int kCurrentInterfaceVersion; private static Vector theFactories; private static Vector thePlugins; private static Vector theWatchers; // Constructors 1 private PluginManager(); // Methods 9 private static void addExternalFactories(String[]); public static int addPlugin(PluginI, int); static ImageViewerI createImageViewer(OwnedFrame, ImageViewerOwner, FileSpecifier, Rectangle); static InfoViewerI createInfoViewer(OwnedFrame, InfoViewerOwner, FileSpecifier, Rectangle); static int initialize(String); private static void initializeWatchers(); private static void registerExternalPlugins(); private static void registerStockPlugins(); static DiskObject[] runDiskFilter(DiskObject, int, int, boolean); }
Your IMPluginFactory class should call this singleton's addPlugin() method to register its plugin(s).
Fields |
· copyright | Summary | Top |
private static final String copyright
· theFactories | Summary | Top |
private static Vector theFactories
Holds the PluginFactoryI objects, from which plugins are spawned.
· theWatchers | Summary | Top |
private static Vector theWatchers
Holds the PluginWatcherI objects, which are called as each plugin is created.
· thePlugins | Summary | Top |
private static Vector thePlugins
Holds the PluginI objects, which are the plugins.
· kCurrentInterfaceVersion | Summary | Top |
private static final int kCurrentInterfaceVersion
Constructors |
· PluginManager | Summary | Top |
private PluginManager()
Methods |
· initialize | Summary | Top |
static int initialize(String fileName)
· addPlugin | Summary | Top |
public static int addPlugin(PluginI plug, int flags)
Your IMPluginFactory class should call this method with each plugin to be registered. If the plugin was added successfully, returns 0. Otherwise, returns a non-zero error code.
Parameter Description flags reserved; set to 0
· createImageViewer | Summary | Top |
static ImageViewerI createImageViewer(OwnedFrame frame, ImageViewerOwner onr, FileSpecifier spec, Rectangle rect)
Search for plugins which can create an ImageViewerI which can display the file specified by spec.
· createInfoViewer | Summary | Top |
static InfoViewerI createInfoViewer(OwnedFrame frame, InfoViewerOwner onr, FileSpecifier spec, Rectangle rect)
Search for plugins which can create an InfoViewerI which can display the file specified by spec.
· runDiskFilter | Summary | Top |
static DiskObject[] runDiskFilter(DiskObject cont, int flags, int maxToReturn, boolean bShowAll)
Returns a list of the DiskObjects contained by 'cont'.
Parameter Description bShowAll if this is true, a GenDiskFilter object is used to get a list of the files, otherwise, a PIMDiskFilter object is used
· addExternalFactories | Summary | Top |
private static void addExternalFactories(String[] strs)
'strs' contains a list of full class names which implement the PluginFactoryI interface. For each element in this array, create an object of the class, and add it to the 'theFactories' vector.
· registerExternalPlugins | Summary | Top |
private static void registerExternalPlugins()
Call the registerPlugins method of each PluginFactoryI in theFactories When called, this method should call the addPlugin method to register any of its plugins.
· initializeWatchers | Summary | Top |
private static void initializeWatchers()
Call the getPluginWatcher method of each PluginFactoryI in theFactories If these methods return PluginWatcherI objects, they are added to the theWatchers vector.
· registerStockPlugins | Summary | Top |
private static void registerStockPlugins()
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7