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
  • Constructor Details

  • Method Details

    • builder

      public static DynamicAggregateCommandHandler.Builder 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:
      handle in interface org.axonframework.messaging.MessageHandler<org.axonframework.commandhandling.CommandMessage<?>>
      Throws:
      Exception
    • canHandle

      public boolean canHandle(org.axonframework.commandhandling.CommandMessage<?> message)
      Specified by:
      canHandle in interface org.axonframework.messaging.MessageHandler<org.axonframework.commandhandling.CommandMessage<?>>
    • resolveReturnValue

      protected Object resolveReturnValue(org.axonframework.commandhandling.CommandMessage<?> command, org.axonframework.modelling.command.Aggregate<DynamicAggregate> createdAggregate)
    • supportedCommandNames

      public Set<String> supportedCommandNames()
      Specified by:
      supportedCommandNames in interface org.axonframework.commandhandling.CommandMessageHandler