org.pdfsam.guiclient.plugins
Class PlugInsLoader

java.lang.Object
  extended by org.pdfsam.guiclient.plugins.PlugInsLoader

public class PlugInsLoader
extends java.lang.Object

Loader for plugins. This tries to get the plugins directory if no pluginsDirectory is given.

Author:
Andrea Vacondio

Constructor Summary
PlugInsLoader(java.lang.String pluginsDirectory)
          Constructor
 
Method Summary
 java.util.Map<PluginDataModel,AbstractPlugablePanel> loadPlugins()
          load the plugins and return
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlugInsLoader

public PlugInsLoader(java.lang.String pluginsDirectory)
              throws PluginException
Constructor

Parameters:
pluginsDirectory - Plug ins absolute path. If it's null or empty it tries to find the plugins dir.
Throws:
PluginLoadException
PluginException
Method Detail

loadPlugins

public java.util.Map<PluginDataModel,AbstractPlugablePanel> loadPlugins()
                                                                 throws PluginException
load the plugins and return

Returns:
a map(k,value) where k is the pluginDataModel and value is the instance
Throws:
PluginException