6 Replies Latest reply on Jul 15, 2007 6:28 PM by dan.j.allen

    support for multiple scopes in @In, who's with me?

    dan.j.allen

      I would like to get a sense if anyone would be interested in the @In annotation supporting multiple scopes. Right now, your only option is either one explicit scope, or a hierarchical search of all the scopes. I can imagine that there are times when you want to look in a handful of scopes, but not all of them. For instance, anything within a conversation, but not above.

      The new definition would be:

      ScopeType[] scope() default {};


      This would also eliminate the need for the UNSPECIFIED scope since no scopes would assume a hierarchical search. The logic that would have to change is Component#getValueToInject()

      Thoughts? I am holding off on filing a JIRA issue to avoid wasting time.