public class MockupConnectionManager
extends java.lang.Object
implements org.processmining.framework.connections.ConnectionManager
Constructor and Description |
---|
MockupConnectionManager() |
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 <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.ConnectionManager
getConnections
in interface org.processmining.framework.connections.ConnectionManager
T
- 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> 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.ConnectionManager
getFirstConnection
in interface org.processmining.framework.connections.ConnectionManager
T
- 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.connections.Connection getConnection(org.processmining.framework.connections.ConnectionID id) throws org.processmining.framework.connections.ConnectionCannotBeObtained
org.processmining.framework.connections.ConnectionManager
getConnection
in interface org.processmining.framework.connections.ConnectionManager
id
- the connection IDorg.processmining.framework.connections.ConnectionCannotBeObtained
public org.processmining.framework.plugin.events.ConnectionObjectListener.ListenerList getConnectionListeners()
org.processmining.framework.connections.ConnectionManager
getConnectionListeners
in interface org.processmining.framework.connections.ConnectionManager
public java.util.Collection<org.processmining.framework.connections.ConnectionID> getConnectionIDs()
org.processmining.framework.connections.ConnectionManager
getConnectionIDs
in interface org.processmining.framework.connections.ConnectionManager
public <T extends org.processmining.framework.connections.Connection> T addConnection(T connection)
org.processmining.framework.connections.ConnectionManager
addConnection
in interface org.processmining.framework.connections.ConnectionManager
connection
- The connection to be registeredpublic boolean isEnabled()
org.processmining.framework.connections.ConnectionManager
isEnabled
in interface org.processmining.framework.connections.ConnectionManager
public void setEnabled(boolean isEnabled)
org.processmining.framework.connections.ConnectionManager
setEnabled
in interface org.processmining.framework.connections.ConnectionManager
isEnabled
- whether connections should be enabledpublic void clear()
clear
in interface org.processmining.framework.connections.ConnectionManager