Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-766

Use CreationalContextImpl to pass info about InjectionPoint, Event, etc

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: 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 Arne Limburg added a comment -

        No more ThreadLocals for injection

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

        shipped in OWB-1.2.0

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development