|
BioLegato 0.6.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biolegato.core.plugins.PluginWrapper
public class PluginWrapper
This class is used to wrap plugins. This makes accessing the class represented by the plugin easier.
| Constructor Summary | |
|---|---|
PluginWrapper(java.lang.String pluginName,
java.lang.Class<?> pluginClass)
Creates a new instance of the plugin wrapper class. |
|
| Method Summary | |
|---|---|
java.lang.Object |
create()
Creates a new object the plugin class. |
java.lang.Object |
create(java.lang.Class[] classes,
java.lang.Object[] data)
Creates a new object the wrapped plugin class (returns null if unsuccessful). |
java.lang.String |
getName()
Returns the class's name. |
boolean |
isA(java.lang.Class<?> test)
Used to test instanceof for the plugin class. |
java.lang.Object |
smethod(java.lang.String name)
Invokes a static method from the plugin. |
java.lang.Object |
smethod(java.lang.String name,
java.lang.Class[] classes,
java.lang.Object[] parameters)
Invokes a static method from the plugin (returns null if not successful). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluginWrapper(java.lang.String pluginName,
java.lang.Class<?> pluginClass)
pluginName - the name of the pluginpluginClass - the instance of the plugin| Method Detail |
|---|
public java.lang.Object create()
public java.lang.Object create(java.lang.Class[] classes,
java.lang.Object[] data)
classes - the class types to use when searching for the constructordata - the data to pass to the plugin's class constructor
public java.lang.Object smethod(java.lang.String name)
name - the name of the method
public java.lang.Object smethod(java.lang.String name,
java.lang.Class[] classes,
java.lang.Object[] parameters)
name - the name of the methodclasses - the classes for the parametersparameters - the parameters to use
public boolean isA(java.lang.Class<?> test)
test - the class to test instanciation of
public java.lang.String getName()
|
BioLegato 0.6.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||