public class ExpDummyPluginContext
extends java.lang.Object
implements org.processmining.framework.plugin.PluginContext
| Modifier and Type | Class and Description |
|---|---|
static class |
ExpDummyPluginContext.ExpDummyConnectionManager |
| Constructor and Description |
|---|
ExpDummyPluginContext() |
| Modifier and Type | Method and Description |
|---|---|
<T extends org.processmining.framework.connections.Connection> |
addConnection(T c)
Registers the given connection in the global context.
|
void |
clear() |
org.processmining.framework.plugin.PluginContext |
createChildContext(java.lang.String label)
Returns a new plugin context instance, which can be used to invoke other
plugins.
|
org.processmining.framework.plugin.PluginContextID |
createNewPluginContextID()
The GlobalContext implementation should create IDs for all PluginContexts
instantiated for it.
|
boolean |
deleteChild(org.processmining.framework.plugin.PluginContext child)
Delete this child from this context.
|
java.util.List<org.processmining.framework.plugin.PluginContext> |
getChildContexts()
Returns a list of all child contexts which have been created with
createChildContext().
|
org.processmining.framework.connections.ConnectionManager |
getConnectionManager()
Returns the connection manager.
|
java.util.concurrent.Executor |
getExecutor()
Returns an executor which can be used to execute plugins in child
contexts.
|
org.processmining.framework.plugin.ProMFuture<?> |
getFutureResult(int i)
This method should only be used by a plugin, in the body of that plugin.
|
org.processmining.framework.plugin.PluginContextID |
getID()
Each PluginContext should carry an ID.
|
java.lang.String |
getLabel()
Returns the label of this context.
|
org.processmining.framework.plugin.events.Logger.ListenerList |
getLoggingListeners()
Returns the list of logging listeners registered to this context.
|
org.processmining.framework.plugin.PluginContext |
getParentContext()
Returns the context which created this context or null if it has no
parent.
|
java.lang.Class<? extends org.processmining.framework.plugin.PluginContext> |
getPluginContextType()
Returns the specific type of the PluginContext.
|
org.processmining.framework.util.Pair<org.processmining.framework.plugin.PluginDescriptor,java.lang.Integer> |
getPluginDescriptor()
Return the plugin descriptor and method index of the plugin which is
invoked in this context.
|
org.processmining.framework.plugin.events.PluginLifeCycleEventListener.List |
getPluginLifeCycleEventListeners()
Returns the list of registered plugin life cycle listeners.
|
org.processmining.framework.plugin.PluginManager |
getPluginManager()
Returns the plugin manager.
|
org.processmining.framework.plugin.Progress |
getProgress()
Returns the progress object corresponding to this context
|
org.processmining.framework.plugin.events.ProgressEventListener.ListenerList |
getProgressEventListeners()
Returns the list of registered progress listeners
|
org.processmining.framework.providedobjects.ProvidedObjectManager |
getProvidedObjectManager()
Returns the providedObject manager.
|
org.processmining.framework.plugin.PluginExecutionResult |
getResult()
This method returns the PluginExecutionResult of the plugin which is
invoked in this context.
|
org.processmining.framework.plugin.PluginContext |
getRootContext()
Returns the root plugin context.
|
boolean |
hasPluginDescriptorInPath(org.processmining.framework.plugin.PluginDescriptor descriptor,
int methodIndex) |
void |
invokeBinding(org.processmining.framework.plugin.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(org.processmining.framework.plugin.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.
|
boolean |
isDistantChildOf(org.processmining.framework.plugin.PluginContext context)
Returns true if this is a distant child of context, i.e.
|
void |
log(java.lang.String message)
Same as calling log(message, MessageLevel.NORMAL);
|
void |
log(java.lang.String message,
org.processmining.framework.plugin.events.Logger.MessageLevel level)
The provided String is provided to the context for information.
|
void |
log(java.lang.Throwable exception)
The provided Exception is provided to the context.
|
void |
setFuture(org.processmining.framework.plugin.PluginExecutionResult resultToBe) |
void |
setPluginDescriptor(org.processmining.framework.plugin.PluginDescriptor descriptor,
int methodIndex) |
<T,C extends org.processmining.framework.connections.Connection> |
tryToFindOrConstructAllObjects(java.lang.Class<T> type,
java.lang.Class<C> connectionType,
java.lang.String role,
java.lang.Object... input)
Finds as many objects of the given type as can be found through the
connections of the other given type.
|
<T,C extends org.processmining.framework.connections.Connection> |
tryToFindOrConstructFirstNamedObject(java.lang.Class<T> type,
java.lang.String name,
java.lang.Class<C> connectionType,
java.lang.String role,
java.lang.Object... input)
Returns the first object of the given type as can be found through the
connections of the other given type.
|
<T,C extends org.processmining.framework.connections.Connection> |
tryToFindOrConstructFirstObject(java.lang.Class<T> type,
java.lang.Class<C> connectionType,
java.lang.String role,
java.lang.Object... input)
Returns the first object of the given type as can be found through the
connections of the other given type.
|
public org.processmining.framework.plugin.PluginManager getPluginManager()
org.processmining.framework.plugin.GlobalContextgetPluginManager in interface org.processmining.framework.plugin.GlobalContextpublic org.processmining.framework.providedobjects.ProvidedObjectManager getProvidedObjectManager()
org.processmining.framework.plugin.GlobalContextgetProvidedObjectManager in interface org.processmining.framework.plugin.GlobalContextpublic org.processmining.framework.connections.ConnectionManager getConnectionManager()
org.processmining.framework.plugin.GlobalContextgetConnectionManager in interface org.processmining.framework.plugin.GlobalContextpublic <T extends org.processmining.framework.connections.Connection> T addConnection(T c)
org.processmining.framework.plugin.PluginContextaddConnection in interface org.processmining.framework.plugin.PluginContextpublic org.processmining.framework.plugin.PluginContextID createNewPluginContextID()
org.processmining.framework.plugin.GlobalContextcreateNewPluginContextID in interface org.processmining.framework.plugin.GlobalContextpublic void invokePlugin(org.processmining.framework.plugin.PluginDescriptor plugin,
int index,
java.lang.Object... objects)
org.processmining.framework.plugin.GlobalContextinvokePlugin in interface org.processmining.framework.plugin.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 pluginpublic void invokeBinding(org.processmining.framework.plugin.PluginParameterBinding binding,
java.lang.Object... objects)
org.processmining.framework.plugin.GlobalContextinvokeBinding in interface org.processmining.framework.plugin.GlobalContextbinding - The binding that should be invoked by the frameworkobjects - The objects to serve as input as accepted by the given
binding.public java.lang.Class<? extends org.processmining.framework.plugin.PluginContext> getPluginContextType()
org.processmining.framework.plugin.GlobalContextgetPluginContextType in interface org.processmining.framework.plugin.GlobalContextpublic <T,C extends org.processmining.framework.connections.Connection> java.util.Collection<T> tryToFindOrConstructAllObjects(java.lang.Class<T> type,
java.lang.Class<C> connectionType,
java.lang.String role,
java.lang.Object... input)
throws org.processmining.framework.connections.ConnectionCannotBeObtained
org.processmining.framework.plugin.ObjectConstructortryToFindOrConstructAllObjects in interface org.processmining.framework.plugin.ObjectConstructorT - The type of the return object required.type - the type of the return object required.connectionType - the type of the connections to use when trying to find the
objects.role - the assumed role of the object in the connection. Given a
connection, the object can be retrieved through the role.input - the input on which the plugin should workorg.processmining.framework.connections.ConnectionCannotBeObtainedpublic <T,C extends org.processmining.framework.connections.Connection> T tryToFindOrConstructFirstObject(java.lang.Class<T> type,
java.lang.Class<C> connectionType,
java.lang.String role,
java.lang.Object... input)
throws org.processmining.framework.connections.ConnectionCannotBeObtained
org.processmining.framework.plugin.ObjectConstructortryToFindOrConstructFirstObject in interface org.processmining.framework.plugin.ObjectConstructorT - The type of the return object required.type - the type of the return object required.connectionType - the type of the connections to use when trying to find the
objects.role - the assumed role of the object in the connection. Given a
connection, the object can be retrieved through the role.input - the input on which the plugin should workorg.processmining.framework.connections.ConnectionCannotBeObtainedpublic <T,C extends org.processmining.framework.connections.Connection> T tryToFindOrConstructFirstNamedObject(java.lang.Class<T> type,
java.lang.String name,
java.lang.Class<C> connectionType,
java.lang.String role,
java.lang.Object... input)
throws org.processmining.framework.connections.ConnectionCannotBeObtained
org.processmining.framework.plugin.ObjectConstructortryToFindOrConstructFirstNamedObject in interface org.processmining.framework.plugin.ObjectConstructorT - The type of the return object required.type - the type of the return object required.name - the name of the plugin to use.connectionType - the type of the connections to use when trying to find the
objects.role - the assumed role of the object in the connection. Given a
connection, the object can be retrieved through the role.input - the input on which the plugin should workorg.processmining.framework.connections.ConnectionCannotBeObtainedpublic org.processmining.framework.plugin.PluginContext createChildContext(java.lang.String label)
org.processmining.framework.plugin.PluginContextcreateChildContext in interface org.processmining.framework.plugin.PluginContextpublic org.processmining.framework.plugin.Progress getProgress()
org.processmining.framework.plugin.PluginContextgetProgress in interface org.processmining.framework.plugin.PluginContextpublic org.processmining.framework.plugin.events.ProgressEventListener.ListenerList getProgressEventListeners()
org.processmining.framework.plugin.PluginContextgetProgressEventListeners in interface org.processmining.framework.plugin.PluginContextpublic org.processmining.framework.plugin.events.PluginLifeCycleEventListener.List getPluginLifeCycleEventListeners()
org.processmining.framework.plugin.PluginContextgetPluginLifeCycleEventListeners in interface org.processmining.framework.plugin.PluginContextpublic org.processmining.framework.plugin.PluginContextID getID()
org.processmining.framework.plugin.PluginContextgetID in interface org.processmining.framework.plugin.PluginContextpublic java.lang.String getLabel()
org.processmining.framework.plugin.PluginContextgetLabel in interface org.processmining.framework.plugin.PluginContextpublic org.processmining.framework.util.Pair<org.processmining.framework.plugin.PluginDescriptor,java.lang.Integer> getPluginDescriptor()
org.processmining.framework.plugin.PluginContextgetPluginDescriptor in interface org.processmining.framework.plugin.PluginContextpublic org.processmining.framework.plugin.PluginContext getParentContext()
org.processmining.framework.plugin.PluginContextgetParentContext in interface org.processmining.framework.plugin.PluginContextpublic java.util.List<org.processmining.framework.plugin.PluginContext> getChildContexts()
org.processmining.framework.plugin.PluginContextgetChildContexts in interface org.processmining.framework.plugin.PluginContextpublic org.processmining.framework.plugin.PluginExecutionResult getResult()
org.processmining.framework.plugin.PluginContextgetResult in interface org.processmining.framework.plugin.PluginContextpublic org.processmining.framework.plugin.ProMFuture<?> getFutureResult(int i)
org.processmining.framework.plugin.PluginContextgetFutureResult in interface org.processmining.framework.plugin.PluginContextpublic java.util.concurrent.Executor getExecutor()
org.processmining.framework.plugin.PluginContextgetExecutor in interface org.processmining.framework.plugin.PluginContextpublic boolean isDistantChildOf(org.processmining.framework.plugin.PluginContext context)
org.processmining.framework.plugin.PluginContextisDistantChildOf in interface org.processmining.framework.plugin.PluginContextpublic void setFuture(org.processmining.framework.plugin.PluginExecutionResult resultToBe)
setFuture in interface org.processmining.framework.plugin.PluginContextpublic void setPluginDescriptor(org.processmining.framework.plugin.PluginDescriptor descriptor,
int methodIndex)
throws org.processmining.framework.plugin.impl.FieldSetException,
org.processmining.framework.plugin.RecursiveCallException
setPluginDescriptor in interface org.processmining.framework.plugin.PluginContextorg.processmining.framework.plugin.impl.FieldSetExceptionorg.processmining.framework.plugin.RecursiveCallExceptionpublic boolean hasPluginDescriptorInPath(org.processmining.framework.plugin.PluginDescriptor descriptor,
int methodIndex)
hasPluginDescriptorInPath in interface org.processmining.framework.plugin.PluginContextpublic void log(java.lang.String message,
org.processmining.framework.plugin.events.Logger.MessageLevel level)
org.processmining.framework.plugin.PluginContextlog in interface org.processmining.framework.plugin.PluginContextmessage - the message to loglevel - the message levelpublic void log(java.lang.String message)
org.processmining.framework.plugin.PluginContextlog in interface org.processmining.framework.plugin.PluginContextmessage - The messagepublic void log(java.lang.Throwable exception)
org.processmining.framework.plugin.PluginContextlog in interface org.processmining.framework.plugin.PluginContextexception - the exception thrownpublic org.processmining.framework.plugin.events.Logger.ListenerList getLoggingListeners()
org.processmining.framework.plugin.PluginContextgetLoggingListeners in interface org.processmining.framework.plugin.PluginContextpublic org.processmining.framework.plugin.PluginContext getRootContext()
org.processmining.framework.plugin.PluginContextgetRootContext in interface org.processmining.framework.plugin.PluginContextpublic boolean deleteChild(org.processmining.framework.plugin.PluginContext child)
org.processmining.framework.plugin.PluginContextdeleteChild in interface org.processmining.framework.plugin.PluginContextpublic void clear()
clear in interface org.processmining.framework.plugin.PluginContext