Class DynamicAggregateCommandHandler
java.lang.Object
ai.stapi.axonsystem.dynamic.aggregate.DynamicAggregateCommandHandler
- All Implemented Interfaces:
org.axonframework.commandhandling.CommandMessageHandler,org.axonframework.messaging.MessageHandler<org.axonframework.commandhandling.CommandMessage<?>>
public class DynamicAggregateCommandHandler
extends Object
implements org.axonframework.commandhandling.CommandMessageHandler
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleancanHandle(org.axonframework.commandhandling.CommandMessage<?> message) handle(org.axonframework.commandhandling.CommandMessage<?> commandMessage) protected ObjectresolveReturnValue(org.axonframework.commandhandling.CommandMessage<?> command, org.axonframework.modelling.command.Aggregate<DynamicAggregate> createdAggregate) org.axonframework.common.Registrationsubscribe(org.axonframework.commandhandling.CommandBus commandBus) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.axonframework.messaging.MessageHandler
canHandleType, getTargetType
-
Constructor Details
-
DynamicAggregateCommandHandler
-
-
Method Details
-
builder
-
subscribe
public org.axonframework.common.Registration subscribe(org.axonframework.commandhandling.CommandBus commandBus) -
handle
public Object handle(org.axonframework.commandhandling.CommandMessage<?> commandMessage) throws Exception - Specified by:
handlein interfaceorg.axonframework.messaging.MessageHandler<org.axonframework.commandhandling.CommandMessage<?>>- Throws:
Exception
-
canHandle
public boolean canHandle(org.axonframework.commandhandling.CommandMessage<?> message) - Specified by:
canHandlein interfaceorg.axonframework.messaging.MessageHandler<org.axonframework.commandhandling.CommandMessage<?>>
-
resolveReturnValue
protected Object resolveReturnValue(org.axonframework.commandhandling.CommandMessage<?> command, org.axonframework.modelling.command.Aggregate<DynamicAggregate> createdAggregate) -
supportedCommandNames
- Specified by:
supportedCommandNamesin interfaceorg.axonframework.commandhandling.CommandMessageHandler
-