You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Currently, in order to use ArcInvocationContext, you'd need to cast ordinary InvocationContext to ArcInvocationContext inside the method. Instead, we could allow to use ArcInvocationContext directly as a parameter of the interceptor method.
Implementation ideas
Changes will be needed in multiple areas but for starters I know that:
We generate interceptor beans that implement javax.enterprise.inject.spi.Interceptor.intercept(InterceptionType, T, InvocationContext)
InterceptorInfo#validateSignature() currently allows only InvocationContext as parameter type
Description
Currently, in order to use
ArcInvocationContext
, you'd need to cast ordinaryInvocationContext
toArcInvocationContext
inside the method. Instead, we could allow to useArcInvocationContext
directly as a parameter of the interceptor method.Implementation ideas
Changes will be needed in multiple areas but for starters I know that:
javax.enterprise.inject.spi.Interceptor.intercept(InterceptionType, T, InvocationContext)
InterceptorInfo#validateSignature()
currently allows onlyInvocationContext
as parameter typeRelated to #15633
Cc @mkouba
The text was updated successfully, but these errors were encountered: