Skip to content

[Feature]: Support for qualifiers and property injection for the @Aspect #4

@ThorbenKuck

Description

@ThorbenKuck

Type of feature request

Extension of an existing feature

What kind of feature would you like to see

The @aspect Annotation allows for auto-creation of an AspectHandler during compile time. The advantage of this is, that you can inject any class dynamically into the method.

However, at the current point in time, this only supports singular parameters. It is missing:

  • List of features
  • Qualified features
  • Properties
  • Resolvables

Code Examples

public class MyHandler {
    @Aspect(around = Example.class)
    public Object handle(
                  ExecutionContext<Example> context,
                  @AwesomeQualifier MyService myService, 
                  List<MyService> allServices),
                  @Resolve("${remote.port:5005}") int remotePort,
                  @Property(name = "my.test.property") String testProperty
    {
        // ...
    }
}

Feature Design

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestTicket will request a new featurepriority-mediumHas a normal priority, can be taken whenever

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions