I need to read metadata from a producer, but I don't find the way:
@Produces @Param("id") Integer getUserId() {...} @Produces @Param("cat") Integer getCategory() {...}
where Param is a qualifier with value as Nonbinding member.
Then I want to extract the value of Param in my programmatic injection:
@Inject @Any Instance<Object> paramSource; ... source = paramSource.select(new AnnotationListeral<Param>());
now I'd like to select the producer which param value is equal to id
.
Is it impossible or am I missing something?
There's nothing like InjectionPoint for programmatic lookup.