Package org.jboss.weld.bean.proxy
Class ClientProxyProvider
java.lang.Object
org.jboss.weld.bean.proxy.ClientProxyProvider
A proxy pool for holding scope adaptors (client proxies)
- Author:
- Nicklas Karlsson
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()<T> TgetClientProxy(jakarta.enterprise.inject.spi.Bean<T> bean) <T> TgetClientProxy(jakarta.enterprise.inject.spi.Bean<T> bean, Type requestedType) Gets a client proxy for a beantoString()Gets a string representation
-
Constructor Details
-
ClientProxyProvider
- Parameters:
contextId-
-
-
Method Details
-
getClientProxy
public <T> T getClientProxy(jakarta.enterprise.inject.spi.Bean<T> bean) -
getClientProxy
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- Returns:
- the client proxy for the bean
-
toString
Gets a string representation -
clear
public void clear()
-