OpenWebBeans
  1. OpenWebBeans
  2. OWB-344

implement Decorators and Interceptors as subclassing

    Details

    • Type: Wish Wish
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-alpha-1
    • Fix Version/s: 1.2.0
    • Labels:
      None

      Description

      This will allow us to further speed up interceptor and decorator handling and to store interceptor instances directly with the contextual instances.

        Issue Links

          Activity

          Hide
          Mark Struberg added a comment -

          shipped in OWB-1.2.0

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

          This patch contains the basic idea how to create the stack with chaining and without reflection calls.

          Show
          Arne Limburg added a comment - This patch contains the basic idea how to create the stack with chaining and without reflection calls.
          Hide
          Mark Struberg added a comment -

          Picking this up now for OWB-1.2.x

          The goal is to split out the interceptor/decorator stuff and apply it 1:1 to the bean instances.

          Thus we need to
          1.) create a subclass which delegates to the
          2.) add an interface OwbInterceptedInstance to have access to the native delegated instance. We need this for invoking private methods for delivering @Observes, etc
          3.) use this in Producer<T>#produce() and InjectionTarget<T>#produce()

          Show
          Mark Struberg added a comment - Picking this up now for OWB-1 .2.x The goal is to split out the interceptor/decorator stuff and apply it 1:1 to the bean instances. Thus we need to 1.) create a subclass which delegates to the 2.) add an interface OwbInterceptedInstance to have access to the native delegated instance. We need this for invoking private methods for delivering @Observes, etc 3.) use this in Producer<T>#produce() and InjectionTarget<T>#produce()
          Hide
          Gurkan Erdogdu added a comment -

          Not possible for 1 series.

          Show
          Gurkan Erdogdu added a comment - Not possible for 1 series.
          Hide
          Mark Struberg added a comment -

          OWB-329 contains a more in depth explanation why this is needed.

          Show
          Mark Struberg added a comment - OWB-329 contains a more in depth explanation why this is needed.

            People

            • Assignee:
              Mark Struberg
              Reporter:
              Mark Struberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development