Home » apache-openwebbeans-1.0.0-incubating-M3-sources » org.apache.webbeans.component.creation » [javadoc | source]
org.apache.webbeans.component.creation
public interface: BeanCreator [javadoc | source]

All Implemented Interfaces:
    javax.enterprise.inject.spi.Producer

All Known Implementing Classes:
    AbstractInjectedTargetBeanCreator, AbstractBeanCreator, EjbBeanCreatorImpl, ManagedBeanCreatorImpl

Contract for Bean creation.

Common operations on ManagedBean, ProducerField and ProducerMethods.

Nested Class Summary:
public enum class  BeanCreator.MetaDataProvider  MetaDataProvider. 
Method from org.apache.webbeans.component.creation.BeanCreator Summary:
checkCreateConditions,   defineApiType,   defineDeploymentType,   defineName,   defineQualifier,   defineScopeType,   defineSerializable,   defineStereoTypes,   getBean,   getMetaDataProvider,   getProducer,   isProducerSet,   setMetaDataProvider,   setProducer
Method from org.apache.webbeans.component.creation.BeanCreator Detail:
 public  void checkCreateConditions()
    Check conditions on creating bean instance.
 public  void defineApiType()
    Define api type.
 public Class<Annotation> defineDeploymentType(String errorMessage)
    Defines deployment type.
 public  void defineName(String defaultName)
    Defines bean name.
 public  void defineQualifier()
    Defines qualifier.
 public  void defineScopeType(String errorMessage)
    Define scope type of the bean.

    Check passivation related controls.

 public  void defineSerializable()
    Define serializable.
 public  void defineStereoTypes()
    Define stereptypes.
 public AbstractBean<T> getBean()
    Gets bean.
 public MetaDataProvider getMetaDataProvider()
    Returns metadata provider.
 public Producer<T> getProducer()
    Returns producer instance.
 public boolean isProducerSet()
    Returns producer instance is set or not.
 public  void setMetaDataProvider(MetaDataProvider metadataProvider)
    Sets meta-data provider.
 public  void setProducer(Producer<T> producer)
    Sets producer. If set, it is responsible for creating bean instance.