Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdi-dev] Getting interceptor bindings in standard way

Hi,

A particular issue in CDI is obtaining the interceptor binding annotations from within an interceptor.

Interceptors may use the target bean class for this, but this doesn't work if the interceptor binding was added dynamically. Currently Jakarta spec implementations like e.g. Soteria use Weld specific code for this (and should also contain OWB specific code). 


There's an existing issue for this:


There's basically two viable solutions for this:

1. Standardise the key to obtain these from the context. Currently Weld uses "org.jboss.weld.interceptor.bindings". We could define this to be "jakarta.interceptor.bindings"

2. Inject them into the intercept method, e.g. intercept(InvocationContext context, MyBinding myBinding)

Thoughts?

Kind regards,
Arjan Tijms


Back to the top