glassfish
  1. glassfish
  2. GLASSFISH-16086

Use Generic in InjectionManager interface

    Details

    • Type: Improvement Improvement
    • Status: In Progress
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: naming
    • Labels:
      None

      Description

      The InjectionManager does not use in generic.
      One may like to investigate which one should use generic there.
      For example,
      public Object createManagedObject(Class clazz)
      throws InjectionException;

      This requires casting from the caller.
      For example, one may change it as follows:
      public T createManagedObject(Class<T> clazz)
      throws InjectionException;

        Issue Links

          Activity

            People

            • Assignee:
              guojun.shan
              Reporter:
              Shing Wai Chan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: