org.jboss.webbeans.bean.proxy
Class ProxyPool

java.lang.Object
  extended by org.jboss.webbeans.bean.proxy.ProxyPool
All Implemented Interfaces:
java.io.Serializable

public class ProxyPool
extends java.lang.Object
implements java.io.Serializable

A proxy pool for holding scope adaptors (client proxies)

Author:
Nicklas Karlsson
See Also:
ProxyMethodHandler, Serialized Form

Constructor Summary
ProxyPool()
           
 
Method Summary
<T> T
getClientProxy(Bean<T> bean, boolean create)
          Gets a client proxy for a bean Looks for a proxy in the pool.
 java.lang.String toString()
          Gets a string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProxyPool

public ProxyPool()
Method Detail

getClientProxy

public <T> T getClientProxy(Bean<T> bean,
                            boolean create)
Gets a client proxy for a bean Looks for a proxy in the pool. If not found, one is created and added to the pool if the create argument is true.

Parameters:
bean - The bean to get a proxy to
create - Flag indicating if the proxy should be created if it does not already exist
Returns:
the client proxy for the bean

toString

public java.lang.String toString()
Gets a string representation

Overrides:
toString in class java.lang.Object
Returns:
The string representation


Copyright © 2008. All Rights Reserved.