[weld-dev] ManagedBean and Weld integration

Jozef Hartinger jharting at redhat.com
Wed Jun 3 05:50:47 EDT 2015


What I meant was that your PlainInterceptorFactory should in this case, 
instead of calling createInterceptorInjectionTarget(), call

beanManager.createInjectionTargetBuilder(type)
     .setDecorationEnabled(false)
     .setInterceptionEnabled(false)
     .setTargetClassLifecycleCallbacksEnabled(false)
     .setResourceInjectionEnabled(true)
     .build()

The InjectionTarget you get should be the same except for resource 
injection which will be provided by Weld.

Jozef

On 06/03/2015 11:25 AM, Emily Jiang wrote:
> I might have missed your point. Please elaborate a bit more.



More information about the weld-dev mailing list