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

        Hide
        Arne Limburg added a comment -

        No more ThreadLocals for injection

        Show
        Arne Limburg added a comment - No more ThreadLocals for injection
        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
        Hide
        Mark Struberg added a comment -

        shipped in OWB-1.2.0

        Show
        Mark Struberg added a comment - shipped in OWB-1 .2.0

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development