public static class ExpDummyPluginContext.ExpDummyConnectionManager
extends java.lang.Object
implements org.processmining.framework.connections.ConnectionManager
| Constructor and Description |
|---|
ExpDummyConnectionManager() |
| Modifier and Type | Method and Description |
|---|---|
<T extends org.processmining.framework.connections.Connection> |
addConnection(T connection)
Adds the given connection to the framework.
|
void |
clear() |
org.processmining.framework.connections.Connection |
getConnection(org.processmining.framework.connections.ConnectionID id)
Returns the connection with the given ID.
|
java.util.Collection<org.processmining.framework.connections.ConnectionID> |
getConnectionIDs()
Returns a collection of connection IDs registered to this global context.
|
org.processmining.framework.plugin.events.ConnectionObjectListener.ListenerList |
getConnectionListeners()
Returns the list of registered connectionObject listeners
|
<T extends org.processmining.framework.connections.Connection> |
getConnections(java.lang.Class<T> connectionType,
org.processmining.framework.plugin.PluginContext context,
java.lang.Object... objects)
Returns a collection of connections between the objects specified, such
that the type of the connection is assignable from the given
connectionType (unless the parameter equals null).
|
<T extends org.processmining.framework.connections.Connection> |
getFirstConnection(java.lang.Class<T> connectionType,
org.processmining.framework.plugin.PluginContext context,
java.lang.Object... objects)
Returns a connection between the objects specified, such that the type of
the connection is assignable from the given connectionType (unless the
parameter equals null).
|
boolean |
isEnabled()
Returns whether connections are enabled.
|
void |
setEnabled(boolean isEnabled)
Sets whether connections are enabled.
|
public void setEnabled(boolean isEnabled)
org.processmining.framework.connections.ConnectionManagersetEnabled in interface org.processmining.framework.connections.ConnectionManagerisEnabled - whether connections should be enabledpublic boolean isEnabled()
org.processmining.framework.connections.ConnectionManagerisEnabled in interface org.processmining.framework.connections.ConnectionManagerpublic <T extends org.processmining.framework.connections.Connection> T getFirstConnection(java.lang.Class<T> connectionType,
org.processmining.framework.plugin.PluginContext context,
java.lang.Object... objects)
throws org.processmining.framework.connections.ConnectionCannotBeObtained
org.processmining.framework.connections.ConnectionManagergetFirstConnection in interface org.processmining.framework.connections.ConnectionManagerT - the type of the requested connection.connectionType - The type of the object requested. This type can be null, in
which case all types are considered.context - The context which requests the connection. If a plugin is
invoked to create a connection, a child context of this
context is instantiatedobjects - the objects which should be connected by the requested
connection. There might be more objects involved in the
connectionorg.processmining.framework.connections.ConnectionCannotBeObtained - if the requested connection does not exist and cannot be
produced in the given context.public <T extends org.processmining.framework.connections.Connection> java.util.Collection<T> getConnections(java.lang.Class<T> connectionType,
org.processmining.framework.plugin.PluginContext context,
java.lang.Object... objects)
throws org.processmining.framework.connections.ConnectionCannotBeObtained
org.processmining.framework.connections.ConnectionManagergetConnections in interface org.processmining.framework.connections.ConnectionManagerT - the type of the requested connection.connectionType - The type of the object requested. This type can be null, in
which case all types are considered.context - The context which requests the connection. If a plugin is
invoked to create a connection, a child context of this
context is instantiatedobjects - the objects which should be connected by the requested
connection. There might be more objects involved in the
connectionorg.processmining.framework.connections.ConnectionCannotBeObtained - if the requested connection does not exist and cannot be
produced in the given context.public org.processmining.framework.plugin.events.ConnectionObjectListener.ListenerList getConnectionListeners()
org.processmining.framework.connections.ConnectionManagergetConnectionListeners in interface org.processmining.framework.connections.ConnectionManagerpublic java.util.Collection<org.processmining.framework.connections.ConnectionID> getConnectionIDs()
org.processmining.framework.connections.ConnectionManagergetConnectionIDs in interface org.processmining.framework.connections.ConnectionManagerpublic org.processmining.framework.connections.Connection getConnection(org.processmining.framework.connections.ConnectionID id)
throws org.processmining.framework.connections.ConnectionCannotBeObtained
org.processmining.framework.connections.ConnectionManagergetConnection in interface org.processmining.framework.connections.ConnectionManagerid - the connection IDorg.processmining.framework.connections.ConnectionCannotBeObtainedpublic void clear()
clear in interface org.processmining.framework.connections.ConnectionManagerpublic <T extends org.processmining.framework.connections.Connection> T addConnection(T connection)
org.processmining.framework.connections.ConnectionManageraddConnection in interface org.processmining.framework.connections.ConnectionManagerconnection - The connection to be registered