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()
GlobalContext
getPluginManager
in interface GlobalContext
public ConnectionManager getConnectionManager()
GlobalContext
getConnectionManager
in interface GlobalContext
public ProvidedObjectManager getProvidedObjectManager()
GlobalContext
getProvidedObjectManager
in interface GlobalContext
public PluginContextID createNewPluginContextID()
GlobalContext
createNewPluginContextID
in interface GlobalContext
public void invokeBinding(PluginParameterBinding binding, java.lang.Object... objects)
GlobalContext
invokeBinding
in interface GlobalContext
binding
- 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)
GlobalContext
invokePlugin
in interface GlobalContext
plugin
- 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()
GlobalContext
getPluginContextType
in interface GlobalContext