Skip to content

Add Live Templates for reoccurring patterns #140

@smcvb

Description

@smcvb

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions