[cdi-dev] Question for clarification and my understanding

Pete Muir pmuir at redhat.com
Wed Oct 19 13:29:32 EDT 2011


On 19 Oct 2011, at 18:24, Rick Hightower wrote:

> Section 5.4
> 
> "Client proxies are never required for a bean whose scope is a pseudo-scope such as @Dependent."
> 
> 
> 
> I understand the concept of client proxies to allow for scopes and context.
> 
> 
> 
> Is this a true statement...
> 
> Client proxies may not be needed for @Dependent (pseudo scope). CDI may provide a client proxy for @Dependent. 
> A proxy is needed for @Dependent objects that are decorated or intercepted with Decorators or Interceptors. 
> 
> Are all injected objects proxied or only objects that are normal scoped or decorated?

No.

This is

Proxies may not be needed for @Dependent (pseudo scope). CDI may provide a proxy for @Dependent. 
A proxy is needed for @Dependent objects that are decorated or intercepted with Decorators or Interceptors. 

Or this is

Client proxies are not needed for @Dependent (pseudo scope). CDI may proxy a @Dependent scoped instance that is decorated or intercepted with Decorators or Interceptors. 


More information about the cdi-dev mailing list