Skip to main content

Command Pattern 12.1.0 problem and how to fix

  2 posts   Feedicon  
Replies: 1 - Last Post: January 23, 2014 08:22
by: brianoliver
showing 1 - 2 of 2
Posted: January 08, 2014 09:02 by kempe
On CommandPattern 12.1.0, it causes ERRORs from AnnotationDrivenModel (common package).

AnnotationDrivenModel requires Event class, but CommandExecutor does not include it.

We fixed it as the below (only add Event argument to some methods!), and it works fine.

Please confirm and modify Git Sources.

Thanks,

Akio & Kempei

com.oracle.coherence.patterns.command.internal.CommandExecutor

@OnEnterState("STARTING")
public Instruction onStarting(State previousState,
State newState,
+++ Event event,
ExecutionContext context)


@OnEnterState("SCHEDULED")
public Instruction onScheduled(State previousState,
State newState,
+++ Event event,
ExecutionContext context)


@OnEnterState("DELAYING")
public Instruction onDelaying(State previousState,
State newState,
+++ Event event,
ExecutionContext context)


@OnEnterState("STOPPING")
public Instruction onStopping(State previousState,
State newState,
+++ Event event,
ExecutionContext context)


@OnEnterState("EXECUTING")
public Instruction onExecuting(State previousState,
State newState,
+++ Event event,
ExecutionContext context)
Posted: January 23, 2014 08:22 by brianoliver
Thanks for identifying!

I've raised the following issue to resolve it:

https://java.net/jira/browse/COHINC-80

Regards

-- Brian
Replies: 1 - Last Post: January 23, 2014 08:22
by: brianoliver
 
 
Close
loading
Please Confirm
Close