OpenWebBeans
  1. OpenWebBeans
  2. OWB-766

Use CreationalContextImpl to pass info about InjectionPoint, Event, etc

    Details

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

      Description

      We currently use lots of ThreadLocals to pass information about the InjectionPoint and similar information. Sometimes those are even public...

      Arne had the idea to put this information into our CreationalContext. That way we don't need any sophisticated locking nor ThreadLocals anymore.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        73d 20h 40m 1 Arne Limburg 07/Apr/13 18:41
        Resolved Resolved Reopened Reopened
        21h 35m 1 Gerhard Petracek 08/Apr/13 16:17
        Reopened Reopened Resolved Resolved
        21d 2h 8m 1 Arne Limburg 29/Apr/13 18:25
        Resolved Resolved Closed Closed
        57d 13h 52m 1 Mark Struberg 26/Jun/13 08:18
        Mark Struberg made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Mark Struberg added a comment -

        shipped in OWB-1.2.0

        Show
        Mark Struberg added a comment - shipped in OWB-1 .2.0
        Arne Limburg made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Gerhard Petracek made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Hide
        Gerhard Petracek added a comment -

        @ApplicationScoped
        public class TestBeanProducer {
        @Produces
        @Dependent
        public TestBean createTestBean(InjectionPoint injectionPoint /issue/)

        { //... }
        }

        public class MyObserver {
        public void onMyEvent(@Observes MyEvent myEvent, TestBean testBean) { //... }

        }

        doesn't work any longer

        Show
        Gerhard Petracek added a comment - @ApplicationScoped public class TestBeanProducer { @Produces @Dependent public TestBean createTestBean(InjectionPoint injectionPoint / issue /) { //... } } public class MyObserver { public void onMyEvent(@Observes MyEvent myEvent, TestBean testBean) { //... } } doesn't work any longer
        Arne Limburg made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Arne Limburg added a comment -

        No more ThreadLocals for injection

        Show
        Arne Limburg added a comment - No more ThreadLocals for injection
        Mark Struberg created issue -

          People

          • Assignee:
            Arne Limburg
            Reporter:
            Mark Struberg
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development