|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.groovydice.plugin.PluginManager
public class PluginManager
This class is responsible to manage the registered plugin instances.
Constructor Summary | |
---|---|
PluginManager()
|
Method Summary | |
---|---|
groovy.lang.MetaClass |
getMetaClass()
|
List |
getPluginStack()
|
Object |
getProperty(String name)
|
Object |
invokeMethod(String name,
Object args)
|
void |
onInitialize(Object config)
Triggers the initialization of all registered plugins. |
void |
register(Object plugins)
Register the given plugin instances. |
void |
setMetaClass(groovy.lang.MetaClass metaClass)
|
void |
setProperty(String name,
Object value)
|
void |
unregister(Object plugins)
Unregister plugins. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginManager()
Method Detail |
---|
public final List getPluginStack()
public void register(Object plugins)
plugins
- Plugin instances to register.public void unregister(Object plugins)
plugins
- If this parameter is null, then all registered plugins
are removed. If this parameter is a Class, then all plug-ins that
shares an is-a relationship with that class are removed. Otherwise,
the plug-in instance represented by this parameter is removed from
the stack.public void onInitialize(Object config)
config
- Configuration context.GroovyDice.initialize()
public groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
public void setMetaClass(groovy.lang.MetaClass metaClass)
setMetaClass
in interface groovy.lang.GroovyObject
public Object invokeMethod(String name, Object args)
invokeMethod
in interface groovy.lang.GroovyObject
public Object getProperty(String name)
getProperty
in interface groovy.lang.GroovyObject
public void setProperty(String name, Object value)
setProperty
in interface groovy.lang.GroovyObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |