Toggle navigation
Home
org.apache.james.eventsourcing.CommandDispatcher.CommandHandler to org.apache.james.protocols.api.handler.CommandHandler
No. of Instances - 2
No. of Commits - 1
No. of Projects - {'james-project'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Cascading Type Change (Similar)
CommandDispatcher.CommandHandler<MyCommand>
to
CommandHandler<MyCommand>
CommandDispatcher.CommandHandler<MyCommand>
to
CommandHandler<MyCommand>
Update Anonymous class
{ @Override public Class<MyCommand> handledClass(){ return MyCommand.class; } @Override public List<? extends Event> handle( MyCommand myCommand){ EventStore.History history=eventStore.getEventsOfAggregate(AGGREGATE_ID); EventIdIncrementer eventIdIncrementer=new EventIdIncrementer(history.getNextEventId()); return Splitter.on(" ").splitToList(myCommand.getPayload()).stream().map(word -> new TestEvent(eventIdIncrementer.next(),AGGREGATE_ID,word)).collect(Guavate.toImmutableList()); } }
to
{ @Override public Class<MyCommand> handledClass(){ return MyCommand.class; } @Override public List<? extends Event> handle( MyCommand myCommand){ History history=eventStore.getEventsOfAggregate(AGGREGATE_ID); EventIdIncrementer eventIdIncrementer=new EventIdIncrementer(history.getNextEventId()); return Splitter.on(" ").splitToList(myCommand.getPayload()).stream().map(word -> new TestEvent(eventIdIncrementer.next(),AGGREGATE_ID,word)).collect(Guavate.toImmutableList()); } }
Cascading Type Change (Different)
EventStore.History
to
History