[~xdury] thanks for trying! bq. lambdas or final classes (WELD-001503) Yea, lambdas and final classes cannot be intercepted - ultimately you still need to create some form of a subclass to enable interception which in case of final classes is, by definition, not possible.
bq. classes which don't have a default constructor/injected constructor (NPE)
Again, same as above, you need a wrapper class extending the original (which implies calling the original constructor)
bq. It seems that the interception target needs to fulfil all constraints of CDI beans.
As a matter of fact, this was there even before as it is spec based, see [this CDI spec chapter, part about {{createInterceptedInstance()}}|http://docs.jboss.org/cdi/spec/2.0/cdi-spec.html#interception_factory]. More precisely those are the rules about proxyability of given type.
Though the NPE is not nice and should be taken care of. I'll see what we can do about that. |
|