Class AbstractGlobalContext
java.lang.Object
org.processmining.framework.plugin.impl.AbstractGlobalContext
- All Implemented Interfaces:
GlobalContext
- Direct Known Subclasses:
CLIContext
,UIContext
Since this context should maintain a link to a single plugin context, and
PluginContextImpl is abstract, this context is also abstract.
- Author:
- bfvdonge
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe GlobalContext implementation should create IDs for all PluginContexts instantiated for it.Returns the connection manager.protected abstract PluginContext
abstract Class<? extends PluginContext>
Returns the specific type of the PluginContext.Returns the plugin manager.Returns the providedObject manager.void
invokeBinding
(PluginParameterBinding binding, 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, Object... objects) This method invokes the specified plugin in a context which is a child of the main plugin context maintained by this globalContext.
-
Field Details
-
loggingEventListeners
-
-
Constructor Details
-
AbstractGlobalContext
public AbstractGlobalContext()
-
-
Method Details
-
getPluginManager
Description copied from interface:GlobalContext
Returns the plugin manager. The plugin manager can be used to query for plugins which are registered in ProM.- Specified by:
getPluginManager
in interfaceGlobalContext
- Returns:
- the plugin manager
-
getConnectionManager
Description copied from interface:GlobalContext
Returns the connection manager. The connection manager can be used to query for connections which are registered in ProM.- Specified by:
getConnectionManager
in interfaceGlobalContext
- Returns:
- the connection manager
-
getProvidedObjectManager
Description copied from interface:GlobalContext
Returns the providedObject manager. The providedObject manager can be used to query for providedObjects which are registered in ProM. The manager should be a ProvidedObjectListener on all PluginInstanceContexts created by createRootInstanceContext.- Specified by:
getProvidedObjectManager
in interfaceGlobalContext
- Returns:
- the providedObject manager
-
createNewPluginContextID
Description copied from interface:GlobalContext
The GlobalContext implementation should create IDs for all PluginContexts instantiated for it.- Specified by:
createNewPluginContextID
in interfaceGlobalContext
- Returns:
-
invokeBinding
Description copied from interface:GlobalContext
This method invokes the specified binding in a context which is a child of the main plugin context maintained by this globalContext. No results are provided to the method calling this method and the plugin is executed some time in the future, as decided by the implementing class.- Specified by:
invokeBinding
in interfaceGlobalContext
- Parameters:
binding
- The binding that should be invoked by the frameworkobjects
- The objects to serve as input as accepted by the given binding.
-
invokePlugin
Description copied from interface:GlobalContext
This method invokes the specified plugin in a context which is a child of the main plugin context maintained by this globalContext. No results are provided to the method calling this method and the plugin is executed some time in the future, as decided by the implementing class.- Specified by:
invokePlugin
in interfaceGlobalContext
- Parameters:
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 plugin
-
getMainPluginContext
-
getPluginContextType
Description copied from interface:GlobalContext
Returns the specific type of the PluginContext. This type is used to instantiate new contexts in which to invoke plugins.- Specified by:
getPluginContextType
in interfaceGlobalContext
- Returns:
- the type of PluginContext provided by this global context
-