Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Add repository beans #22

Open
hwellmann opened this issue Oct 1, 2018 · 0 comments
Open

Add repository beans #22

hwellmann opened this issue Oct 1, 2018 · 0 comments
Assignees
Labels
Type: Enhancement New feature or request

Comments

@hwellmann
Copy link

The extension should automatically add a bean of type Repository<Foo> for each aggregate Foo.

This would enable users to simply write

@ApplicationScoped
public class BankAccountCommandHandler {

    @Inject
    private Repository<BankAccount> repository;

    @Inject
    private EventBus eventBus;
}

saving a producer method and an explicit constructor for BankAccountCommandHandler.

@bert-laverman bert-laverman added the Type: Enhancement New feature or request label Oct 1, 2018
@m-reza-rahman m-reza-rahman self-assigned this Oct 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants