Class ContextBeanInstance<T>

java.lang.Object
org.jboss.weld.bean.proxy.AbstractBeanInstance
org.jboss.weld.bean.proxy.ContextBeanInstance<T>
All Implemented Interfaces:
Serializable, BeanInstance

public class ContextBeanInstance<T> extends AbstractBeanInstance implements Serializable
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 Details

    • ContextBeanInstance

      public ContextBeanInstance(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.
      Parameters:
      bean - The contextual bean
      id - The unique identifier of this bean
  • Method Details