Skip to content

Generate custom command gateway interface #147

@jangalinski

Description

@jangalinski

Instead of using the CommandGateway directly, we should generate a type safe, custom command interface and feed this to the CommandGatewayFactory.

See:

@Bean
  fun myCommandGateway(commandBus: CommandBus): MyCommandGateway = CommandGatewayFactory.builder()
    .commandBus(commandBus).build().createGateway(MyCommandGateway::class.java)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Prio: SHOULDFeature is essential for the next releaseType: enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions