Details

    • Type: Feature Request Feature Request
    • Status: Resolved Resolved (View Workflow)
    • Priority: Major 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.

        Issue Links

          Activity

          Hide
          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
          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
          Pete Muir
          added a comment -

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

          Show
          Pete Muir
          added a comment - Initial proposal, which deviates totally from what we discussed here at https://github.com/jboss/cdi/pull/43
          Hide
          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
          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
          Mark Struberg
          added a comment -

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

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

          Craig, the issue for EntityListener injection is CDI-144

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: