Package org.jboss.weld.bean.proxy
Class ContextBeanInstance<T>
java.lang.Object
org.jboss.weld.bean.proxy.AbstractBeanInstance
org.jboss.weld.bean.proxy.ContextBeanInstance<T>
- All Implemented Interfaces:
Serializable,BeanInstance
An instance locator that uses a context to lookup the instance if
it exists; otherwise, a new instance will be created from the
bean.
- Author:
- David Allen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionContextBeanInstance(jakarta.enterprise.inject.spi.Bean<T> bean, org.jboss.weld.serialization.spi.BeanIdentifier id, String contextId) Creates a new locator for instances of the given bean. -
Method Summary
Modifier and TypeMethodDescriptionReturns the current instance for a proxy.Methods inherited from class org.jboss.weld.bean.proxy.AbstractBeanInstance
computeInstanceType, computeInstanceType, invoke
-
Constructor Details
-
Method Details
-
getInstance
Description copied from interface:BeanInstanceReturns the current instance for a proxy.- Specified by:
getInstancein interfaceBeanInstance- Returns:
- the current bean instance
-
getInstanceType
- Specified by:
getInstanceTypein interfaceBeanInstance
-