[
https://issues.jboss.org/browse/CDI-580?page=com.atlassian.jira.plugin.sy...
]
Mark Struberg commented on CDI-580:
-----------------------------------
Or probably give the user the whole toolset for creating subclassing proxies in it's
hand? A user could then basically do what I explained in
https://struberg.wordpress.com/2016/01/30/applying-interceptors-to-produc... but
not only for interfaces but also for classes.
Means we introduce javax.proxy and create something similar to java.lang.reflect.Proxy but
for subclassing proxies.
Allow interceptors and decorators to be applied to the return value
of a producer method
----------------------------------------------------------------------------------------
Key: CDI-580
URL:
https://issues.jboss.org/browse/CDI-580
Project: CDI Specification Issues
Issue Type: Feature Request
Components: Beans
Affects Versions: 2.0-EDR1
Reporter: Mark Struberg
Currently the spec explicitly disallows to apply interceptors and decorators to
contextual instances created by producer fields and producer methods.
if you add an Interceptor annotation to a producer method then only the invocation of the
producermethod gets intercepted. The created Contextual Instance will remain a plain
object.
We should explore ways to allow this somehow.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)