org.apache.webbeans.context.creational
Class BeanInstanceBag<T>

java.lang.Object
  extended by org.apache.webbeans.context.creational.BeanInstanceBag<T>
All Implemented Interfaces:
Serializable

public class BeanInstanceBag<T>
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
BeanInstanceBag(javax.enterprise.context.spi.CreationalContext<T> beanCreationalContext)
           
 
Method Summary
 T create(javax.enterprise.context.spi.Contextual<T> contextual)
          Create the contextual instance in a thread safe fashion
 javax.enterprise.context.spi.CreationalContext<T> getBeanCreationalContext()
           
 T getBeanInstance()
           
 void setBeanInstance(T beanInstance)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanInstanceBag

public BeanInstanceBag(javax.enterprise.context.spi.CreationalContext<T> beanCreationalContext)
Method Detail

getBeanCreationalContext

public javax.enterprise.context.spi.CreationalContext<T> getBeanCreationalContext()
Returns:
the beanCreationalContext

setBeanInstance

public void setBeanInstance(T beanInstance)
Parameters:
beanInstance - the beanInstance to set

getBeanInstance

public T getBeanInstance()
Returns:
the beanInstance

create

public T create(javax.enterprise.context.spi.Contextual<T> contextual)
Create the contextual instance in a thread safe fashion

Parameters:
contextual -
Returns:
the single contextual instance for the context

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.