glassfish
  1. glassfish
  2. GLASSFISH-18673

Use JSR 330 annotations in GlassFish Cloud

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      GlassFish modules should move away from using non standard Classes like Habitat and use standards based annotations and classes as specified by jsr 330(javax.inject.Inject, javax.inject.Provider etc.). To quote Jerome: "Classes like Habitat exposes too many APIs available to the users that makes the hk2 evolution very difficult. " Also some of the APIs are unclear (when to use habitat.getComponent() versus habitat.getByType() /habitat.getByContract() ).

      So, the first step is to move away from Habitat (where ever possible) and use jsr 330 interface and annotations.

      In order to do this, the hk2 team will be making the following changes to the GlassFish modules as described here ...

      http://aseng-wiki.us.oracle.com/asengwiki/display/GlassFish/Internal+Status+Page+for+HK2+API+Changes

        Activity

        tbeerbower created issue -
        tbeerbower made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        tbeerbower added a comment -

        Replace org.jvnet.hk2.annotations.Inject with javax.inject.Inject.

        Committed revision 53749.

        Show
        tbeerbower added a comment - Replace org.jvnet.hk2.annotations.Inject with javax.inject.Inject. Committed revision 53749.
        Hide
        tbeerbower added a comment -

        Replace org.jvnet.hk2.annotations.Inject with javax.inject.Inject for constructor injection.

        Committed revision 53798.

        Show
        tbeerbower added a comment - Replace org.jvnet.hk2.annotations.Inject with javax.inject.Inject for constructor injection. Committed revision 53798.
        Hide
        tbeerbower added a comment -

        Replace org.jvnet.hk2.annotations.Inject with javax.inject.Inject for constructor injection with @Optional parameter.

        Committed revision 53803.

        Show
        tbeerbower added a comment - Replace org.jvnet.hk2.annotations.Inject with javax.inject.Inject for constructor injection with @Optional parameter. Committed revision 53803.
        Tom Mueller made changes -
        Assignee tbeerbower [ tbeerbower ] jwells [ jwells ]
        Hide
        jwells added a comment -

        Fixed in April

        Show
        jwells added a comment - Fixed in April
        jwells made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            jwells
            Reporter:
            tbeerbower
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: