public class RecordingJob<EventAtom> extends CompositeJob<EventAtom>
RecordingCommand if there is a
TransactionalEditingDomain available. It is possible to access all created commands by adding a session
recorder implementation to the build.| Modifier and Type | Class and Description |
|---|---|
static interface |
RecordingJob.ICommandRecorder<EventAtom> |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RECORDING_JOB |
static java.lang.String |
RECORDING_JOB_SESSION_DATA_KEY |
static java.lang.String |
TRANSACTIONAL_EDITING_DOMAIN |
| Constructor and Description |
|---|
RecordingJob(Job<EventAtom> recordedJob)
Creates a new recording job associated with the given state and processor.
|
RecordingJob(Job<EventAtom> recordedJob,
EventAtomEditingDomainProvider<EventAtom> provider) |
RecordingJob(Job<EventAtom> recordedJob,
EventAtomEditingDomainProvider<EventAtom> provider,
RecordingJob.ICommandRecorder<EventAtom> commandRecorder) |
RecordingJob(Job<EventAtom> recordedJob,
RecordingJob.ICommandRecorder<EventAtom> commandRecorder) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute(Activation<? extends EventAtom> activation,
Context context)
Executes the action on the activation using the supplied context.
|
protected java.lang.Object |
findDomainTarget(Activation<? extends EventAtom> activation,
Context context)
This method is used to find a target that can be used for getting the
TransactionalEditingDomain. |
handleErrorgetActivationStatepublic static final java.lang.String TRANSACTIONAL_EDITING_DOMAIN
public static final java.lang.String RECORDING_JOB
public static final java.lang.String RECORDING_JOB_SESSION_DATA_KEY
public RecordingJob(Job<EventAtom> recordedJob)
recordedJob - public RecordingJob(Job<EventAtom> recordedJob, EventAtomEditingDomainProvider<EventAtom> provider)
public RecordingJob(Job<EventAtom> recordedJob, RecordingJob.ICommandRecorder<EventAtom> commandRecorder)
public RecordingJob(Job<EventAtom> recordedJob, EventAtomEditingDomainProvider<EventAtom> provider, RecordingJob.ICommandRecorder<EventAtom> commandRecorder)
protected void execute(Activation<? extends EventAtom> activation, Context context)
Jobexecute in class CompositeJob<EventAtom>protected java.lang.Object findDomainTarget(Activation<? extends EventAtom> activation, Context context)
TransactionalEditingDomain. It
tries to retrieve the domain from the context, otherwise it tries to find an EObject parameter in the event atom
of the activation.activation - context -