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

Add Live Templates for reoccurring patterns #140

Open
smcvb opened this issue Sep 30, 2022 · 0 comments
Open

Add Live Templates for reoccurring patterns #140

smcvb opened this issue Sep 30, 2022 · 0 comments

Comments

@smcvb
Copy link
Member

smcvb commented Sep 30, 2022

Feature Description

It would be nice if the plugin contained Intellij's Live Templates.
By doing so, we could allow users macro's, like ch or cmdh, that could automatically construct a basic @CommandHandler annotated method.
The template can then guide the user through defining the command type too.
Added, we can provide AxonIQ's formatting recommendations through this too.

We can start by adding templates for all the message handler types we have.
Thus:

  • Command Handlers
  • Event Handlers
  • Query Handlers
  • Saga Event Handlers
  • Deadline Handlers
  • Reset Handlers
  • Command Handler Interceptors
  • Message Handler Interceptors
  • Exception Handlers

Later on, we may be able to expand this with basic formats of Aggregates, Sagas, Event Handling Components / Projectors, etc.

Current Behaviour

There are no built-in, Axon-specific, live templates present.

Wanted Behaviour

That the Axon Framework Intellij Plugin contains live templates for often used method and class formats.

Possible Workarounds

Users can define live templates relatively easy themselves.

@smcvb smcvb self-assigned this Sep 30, 2022
@smcvb smcvb changed the title Add Live Templates for reoccurring pattersn Add Live Templates for reoccurring patterns Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant