|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.fluxion.pussycat.util.PluginManager
public class PluginManager
Class to manage any plugins available - modified for use in the ComparaGRID project
Constructor Summary | |
---|---|
PluginManager()
Default constructor for the PluginManager object |
|
PluginManager(java.lang.String path)
Constructs a new PluginManager with respect to a given path of plugins |
Method Summary | |
---|---|
java.lang.String |
getMainClass(JarPlugin jp)
Gets the main class of a JarPlugin |
void |
getMethods(JarPlugin jp)
Gets all the methods held in the main class of the JarPlugin |
java.lang.Object |
getObject(JarPlugin jp)
Instantiates a JarPlugin as an Object |
java.util.Set<JarPlugin> |
getPlugins()
Returns all found JarPlugins |
java.util.ArrayList |
getPluginsNamesAsList()
Returns the names of all found JarPlugins as an ArrayList |
void |
runSelectedPlugin(java.net.URL url,
java.lang.String method,
java.lang.String[] newArgs)
Invokes the selected plugin's main class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginManager()
public PluginManager(java.lang.String path)
path
- Description of the ParameterMethod Detail |
---|
public java.util.ArrayList getPluginsNamesAsList()
public java.util.Set<JarPlugin> getPlugins()
public void getMethods(JarPlugin jp)
jp
- Description of the Parameterpublic java.lang.String getMainClass(JarPlugin jp)
jp
- Description of the Parameter
public java.lang.Object getObject(JarPlugin jp) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
jp
- Description of the Parameter
java.lang.ClassNotFoundException
- Description of the Exception
java.lang.InstantiationException
- Description of the Exception
java.lang.IllegalAccessException
- Description of the Exceptionpublic void runSelectedPlugin(java.net.URL url, java.lang.String method, java.lang.String[] newArgs)
url
- Description of the Parametermethod
- Description of the ParameternewArgs
- Description of the Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |