Skip to content

User-created Qualifier attributes #23

@benjamin-bader

Description

@benjamin-bader

NamedAttribute is privileged at this point; Keys knows what it is and how to accommodate it. This was done initially to make implementing Stiletto less complicated, but Now is the Right Time to add generalized qualifiers.

For example, instead of [Inject, Named("listen-port")], you could have [Inject, ListenPort]

declared like so:

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Parameter|AttributeTargets.Method)]
public class ListenPortAttribute : QualifierAttribute {}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions