Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1.EDR
    • Component/s: Resolution
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      Description

      Currently obtaining a contextual reference is quite a complex operation, adding a method like:

      Instance<Object> instance();

      would make it much easier.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            pmuir Pete Muir added a comment -

            Issue with all of this is that now destroying this instance is hard. We would need to extend Instance<> with a void destroy(T instance); method.

            Show
            pmuir Pete Muir added a comment - Issue with all of this is that now destroying this instance is hard. We would need to extend Instance<> with a void destroy(T instance); method.
            Hide
            pmuir Pete Muir added a comment -

            Initial proposal, which deviates totally from what we discussed here at https://github.com/jboss/cdi/pull/43

            Show
            pmuir Pete Muir added a comment - Initial proposal, which deviates totally from what we discussed here at https://github.com/jboss/cdi/pull/43
            Hide
            ringerc Craig Ringer added a comment - - edited

            Regarding JPA Entity Listeners, that's going to be fixed in JPA 2.1 ; I got sick of it the issue and nagged the spec team about it. See sections 3.5-3.5.2 in the latest draft (http://java.net/projects/jpa-spec/downloads). Please review it now, don't wait to complain about it once it goes final!

            Show
            ringerc Craig Ringer added a comment - - edited Regarding JPA Entity Listeners, that's going to be fixed in JPA 2.1 ; I got sick of it the issue and nagged the spec team about it. See sections 3.5-3.5.2 in the latest draft ( http://java.net/projects/jpa-spec/downloads ). Please review it now, don't wait to complain about it once it goes final!
            Hide
            struberg Mark Struberg added a comment -

            I created CDI-155 for the Instance<T>#destroy() issue to prevent mem leaks with @Dependent beans.

            Show
            struberg Mark Struberg added a comment - I created CDI-155 for the Instance<T>#destroy() issue to prevent mem leaks with @Dependent beans.
            Hide
            pmuir Pete Muir added a comment -

            Craig, the issue for EntityListener injection is CDI-144

            Show
            pmuir Pete Muir added a comment - Craig, the issue for EntityListener injection is CDI-144

              People

              • Assignee:
                pmuir Pete Muir
                Reporter:
                pmuir Pete Muir
              • Votes:
                2 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development