Plexus
  1. Plexus
  2. PLX-400

Consider using implementor simple (or fqn) class name as roleHint

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1.0-beta-3.0.7
    • Component/s: Container
    • Labels:
      None
    • Number of attachments :
      0

      Description

      In systems, where the potential number of implementors of some components is "theoretically" endless (think about some system and user contributed components for example) number of role providers, it is usually okay to use implementor class name as roleHint.

      Currently, as of p-c-d beta-1 and java5 annotations, it is possible only by Copy+Paste of the class name into the java5 Component anno as string literal. This is cubersome (think about potential problems when doing mass refactoring and ending up with components with overlapping hints for example).

      A possible way – to have unobtrusive change on annotations and config generator – would be to introduce a new Component flag (to leave current "hint" unaffected) is to have some boolean flag ie. "implementorIsHint=true" (that defaults to false).

      In case of "true", the component descriptor creator would simply take the implementor FQN and use that as roleHint.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Tamás Cservenák
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: