Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate custom command gateway interface #147

Open
jangalinski opened this issue Sep 19, 2024 · 0 comments
Open

Generate custom command gateway interface #147

jangalinski opened this issue Sep 19, 2024 · 0 comments
Labels
Prio: SHOULD Feature is essential for the next release Type: enhancement New feature or request

Comments

@jangalinski
Copy link
Contributor

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)
@jangalinski jangalinski added Prio: SHOULD Feature is essential for the next release Type: enhancement New feature or request labels Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Prio: SHOULD Feature is essential for the next release Type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant