public abstract class AbstractGlobalContext extends java.lang.Object implements GlobalContext
| Modifier and Type | Field and Description |
|---|---|
protected Logger.ListenerList |
loggingEventListeners |
| Constructor and Description |
|---|
AbstractGlobalContext() |
| Modifier and Type | Method and Description |
|---|---|
PluginContextID |
createNewPluginContextID()
The GlobalContext implementation should create IDs for all PluginContexts
instantiated for it.
|
ConnectionManager |
getConnectionManager()
Returns the connection manager.
|
protected abstract PluginContext |
getMainPluginContext() |
abstract java.lang.Class<? extends PluginContext> |
getPluginContextType()
Returns the specific type of the PluginContext.
|
PluginManager |
getPluginManager()
Returns the plugin manager.
|
ProvidedObjectManager |
getProvidedObjectManager()
Returns the providedObject manager.
|
void |
invokeBinding(PluginParameterBinding binding,
java.lang.Object... objects)
This method invokes the specified binding in a context which is a child
of the main plugin context maintained by this globalContext.
|
void |
invokePlugin(PluginDescriptor plugin,
int index,
java.lang.Object... objects)
This method invokes the specified plugin in a context which is a child of
the main plugin context maintained by this globalContext.
|
protected final Logger.ListenerList loggingEventListeners
public PluginManager getPluginManager()
GlobalContextgetPluginManager in interface GlobalContextpublic ConnectionManager getConnectionManager()
GlobalContextgetConnectionManager in interface GlobalContextpublic ProvidedObjectManager getProvidedObjectManager()
GlobalContextgetProvidedObjectManager in interface GlobalContextpublic PluginContextID createNewPluginContextID()
GlobalContextcreateNewPluginContextID in interface GlobalContextpublic void invokeBinding(PluginParameterBinding binding, java.lang.Object... objects)
GlobalContextinvokeBinding in interface GlobalContextbinding - The binding that should be invoked by the frameworkobjects - The objects to serve as input as accepted by the given
binding.public void invokePlugin(PluginDescriptor plugin, int index, java.lang.Object... objects)
GlobalContextinvokePlugin in interface GlobalContextplugin - The plugin that should be invoked by the frameworkindex - The index of the plugin method that should be invoked.objects - The objects to serve as input as accepted by the method at
index of the pluginprotected abstract PluginContext getMainPluginContext()
public abstract java.lang.Class<? extends PluginContext> getPluginContextType()
GlobalContextgetPluginContextType in interface GlobalContext