Class AbstractGlobalContext
- java.lang.Object
-
- org.processmining.framework.plugin.impl.AbstractGlobalContext
-
- All Implemented Interfaces:
GlobalContext
public abstract class AbstractGlobalContext extends java.lang.Object implements GlobalContext
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
Fields Modifier and Type Field Description protected Logger.ListenerListloggingEventListeners
-
Constructor Summary
Constructors Constructor Description AbstractGlobalContext()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description PluginContextIDcreateNewPluginContextID()The GlobalContext implementation should create IDs for all PluginContexts instantiated for it.ConnectionManagergetConnectionManager()Returns the connection manager.protected abstract PluginContextgetMainPluginContext()abstract java.lang.Class<? extends PluginContext>getPluginContextType()Returns the specific type of the PluginContext.PluginManagergetPluginManager()Returns the plugin manager.ProvidedObjectManagergetProvidedObjectManager()Returns the providedObject manager.voidinvokeBinding(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.voidinvokePlugin(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.
-
-
-
Field Detail
-
loggingEventListeners
protected final Logger.ListenerList loggingEventListeners
-
-
Method Detail
-
getPluginManager
public PluginManager getPluginManager()
Description copied from interface:GlobalContextReturns the plugin manager. The plugin manager can be used to query for plugins which are registered in ProM.- Specified by:
getPluginManagerin interfaceGlobalContext- Returns:
- the plugin manager
-
getConnectionManager
public ConnectionManager getConnectionManager()
Description copied from interface:GlobalContextReturns the connection manager. The connection manager can be used to query for connections which are registered in ProM.- Specified by:
getConnectionManagerin interfaceGlobalContext- Returns:
- the connection manager
-
getProvidedObjectManager
public ProvidedObjectManager getProvidedObjectManager()
Description copied from interface:GlobalContextReturns 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:
getProvidedObjectManagerin interfaceGlobalContext- Returns:
- the providedObject manager
-
createNewPluginContextID
public PluginContextID createNewPluginContextID()
Description copied from interface:GlobalContextThe GlobalContext implementation should create IDs for all PluginContexts instantiated for it.- Specified by:
createNewPluginContextIDin interfaceGlobalContext- Returns:
-
invokeBinding
public void invokeBinding(PluginParameterBinding binding, java.lang.Object... objects)
Description copied from interface:GlobalContextThis 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:
invokeBindingin 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
public void invokePlugin(PluginDescriptor plugin, int index, java.lang.Object... objects)
Description copied from interface:GlobalContextThis 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:
invokePluginin 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
protected abstract PluginContext getMainPluginContext()
-
getPluginContextType
public abstract java.lang.Class<? extends PluginContext> getPluginContextType()
Description copied from interface:GlobalContextReturns the specific type of the PluginContext. This type is used to instantiate new contexts in which to invoke plugins.- Specified by:
getPluginContextTypein interfaceGlobalContext- Returns:
- the type of PluginContext provided by this global context
-
-