Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2078

Decorator not applied to produced bean

XMLWordPrintable

      Enabled decorator is not applied to produced beans.

      @Decorator
      public abstract class FooDecorator implements Foo {
        
        @Any
        @Inject
        @Delegate
        private Foo foo;
        
        @Override
        public String process() {
          ...
          return foo.process();
        }
      }
      

      Decorator is applied to bean Baz...

        @Baz
        public class Baz implements Foo {
           ...
        }
      

      ...but not to produced bean Bar.

        
        @Bar
        @Produces
        public Foo producePaymentProcessor() {
          return new Foo() {
             ....
          };
        };
      

              Unassigned Unassigned
              sknitelius Stephan Knitelius (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: