Skip to content

Document best practices for implementing ParameterResolvers #1190

@sbrannen

Description

@sbrannen

Overview

Based on discussions in #1184 and weld/weld-testing#3, it is apparent that we need to document best practices for implementing ParameterResolver, particularly with regard to "playing nicely" with other registered ParameterResolver implementations.

Proposed Categories

After having put a bit more thought into the subject, I am tossing around the idea of categorizing ParameterResolver implementations by behavior as follows.

  • explicit: support requires an annotation for disambiguation.
  • implicit: support is automatic for types owned by the resolver.
  • speculative: a resolver claims it can support a given parameter even if it potentially should not (a.k.a., greedy or eager).

Deliverables

  • Document best practices for ParameterResolver implementations in JavaDoc.
    • more succinct than the documentation in the User Guide
  • Document best practices for ParameterResolver implementations in the User Guide.
    • including examples and explanations of how to avoid conflicts

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions