public class PluginManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PLUGIN_LIBRARY_TYPE |
Constructor and Description |
---|
PluginManager(File pluginFolder)
Reads application plug-ins from resources in the given plug-in folder.
|
PluginManager(File[] pluginFolders)
Reads application plug-ins from resources in the given plug-in folders.
|
PluginManager(URL[] pluginUrls)
Reads application plug-ins from resources in the given URLs.
|
Modifier and Type | Method and Description |
---|---|
void |
addPlugin(String pluginPath)
Adds the file at the given location to the first plug-ins folders if it exists.
|
void |
deletePlugins(List<Library> libraries)
Deletes the given plug-in
libraries from managed plug-ins. |
List<Library> |
getPluginLibraries()
Returns the available plug-in libraries.
|
List<Plugin> |
getPlugins(HomeApplication application,
Home home,
UserPreferences preferences,
UndoableEditSupport undoSupport)
Returns an unmodifiable list of plug-in instances initialized with the
given parameters.
|
boolean |
pluginExists(String pluginLocation)
Returns
true if a plug-in in the given file name already exists
in the first plug-ins folder. |
public static final String PLUGIN_LIBRARY_TYPE
public PluginManager(File pluginFolder)
public PluginManager(File[] pluginFolders)
public PluginManager(URL[] pluginUrls)
public List<Library> getPluginLibraries()
public List<Plugin> getPlugins(HomeApplication application, Home home, UserPreferences preferences, UndoableEditSupport undoSupport)
public boolean pluginExists(String pluginLocation) throws RecorderException
true
if a plug-in in the given file name already exists
in the first plug-ins folder.RecorderException
- if no plug-ins folder is associated to this manager.public void deletePlugins(List<Library> libraries) throws RecorderException
libraries
from managed plug-ins.RecorderException
public void addPlugin(String pluginPath) throws RecorderException
RecorderException
- if no plug-ins folder is associated to this manager.
© Copyrights 2006-2016 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License