Help

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

Work in progress list of enhancements to javax.interceptor and javax.decorator for the CDI 1.0 maintenance release.

Methods of abstract decorators

The CDI 1.0 spec does not define what happens with abstract methods of an abstract decorator class. This was an oversight. We should probably say:

  • If a decorator class declares an abstract method that is not declared by one of the decorated types, a definition error results
  • All abstract methods have a container-generated implementation that simply delegates the method call to the delegate object

With this definition, I don't think we need any special-casing for abstract methods annotated @Inject, @PostConstruct, etc.