org.apache.webbeans.component
Class ManagedBean<T>

java.lang.Object
  extended by org.apache.webbeans.component.AbstractOwbBean<T>
      extended by org.apache.webbeans.component.AbstractInjectionTargetBean<T>
          extended by org.apache.webbeans.component.ManagedBean<T>
All Implemented Interfaces:
javax.enterprise.context.spi.Contextual<T>, javax.enterprise.inject.spi.Bean<T>, InjectionTargetBean<T>, InterceptedMarker, OwbBean<T>
Direct Known Subclasses:
NewManagedBean

public class ManagedBean<T>
extends AbstractInjectionTargetBean<T>
implements InterceptedMarker

Managed bean implementation of the Bean.

Version:
$Rev: 1182780 $ $Date: 2011-10-13 13:11:03 +0200 (Do, 13 Okt 2011) $

Field Summary
protected  boolean isAbstractDecorator
           
 
Fields inherited from class org.apache.webbeans.component.AbstractInjectionTargetBean
decorators, inheritedMetaData, interceptorStack
 
Fields inherited from class org.apache.webbeans.component.AbstractOwbBean
apiTypes, enabled, implQualifiers, implScopeType, injectionPoints, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansType
 
Constructor Summary
ManagedBean(Class<T> returnType, WebBeansContext webBeansContext)
           
ManagedBean(Class<T> returnType, WebBeansType type, WebBeansContext webBeansContext)
          Creates a new instance.
 
Method Summary
 void addQualifier(Annotation qualifier)
          Add new qualifier.
protected  T createComponentInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
          Sub-classes must override this method to create bean instance.
 Constructor<T> getConstructor()
          Get constructor.
 boolean isFullInit()
           
 boolean isPassivationCapable()
          True if passivation capable false otherwise.
 void setConstructor(Constructor<T> constructor)
          Set constructor.
 void setFullInit(boolean fullInit)
           
 void setIsAbstractDecorator(boolean flag)
           
 
Methods inherited from class org.apache.webbeans.component.AbstractInjectionTargetBean
addInjectedField, addInjectedFieldToSuper, addInjectedMethod, addInjectedMethodToSuper, addObservableMethod, afterConstructor, beforeConstructor, createDefaultInstance, createInstance, destroyComponentInstance, destroyInstance, getAnnotatedType, getDecoratorStack, getInheritedMetaData, getInjectedFields, getInjectedFromSuperFields, getInjectedFromSuperMethods, getInjectedMethods, getInjectionPoints, getInterceptorStack, getObservableMethods, injectFields, injectMethods, injectResources, injectSuperFields, injectSuperMethods, postConstruct, postConstructDefault, preDestroy, preDestroyDefault, setAnnotatedType, setInheritedMetaData, validatePassivationDependencies
 
Methods inherited from class org.apache.webbeans.component.AbstractOwbBean
addApiType, addInjectionPoint, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, equals, getBeanClass, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getLogger, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansContext, getWebBeansType, hashCode, isAlternative, isDependent, isEnabled, isNullable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.webbeans.component.OwbBean
addApiType, addInjectionPoint, addStereoType, createNewInstance, destroyCreatedInstance, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getOwbStereotypes, getReturnType, getWebBeansContext, getWebBeansType, isDependent, isEnabled, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean
 
Methods inherited from interface javax.enterprise.inject.spi.Bean
getBeanClass, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable
 
Methods inherited from interface javax.enterprise.context.spi.Contextual
create, destroy
 

Field Detail

isAbstractDecorator

protected boolean isAbstractDecorator
Constructor Detail

ManagedBean

public ManagedBean(Class<T> returnType,
                   WebBeansContext webBeansContext)

ManagedBean

public ManagedBean(Class<T> returnType,
                   WebBeansType type,
                   WebBeansContext webBeansContext)
Creates a new instance.

Parameters:
returnType - bean class
type - webbeans type
webBeansContext -
Method Detail

createComponentInstance

protected T createComponentInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Sub-classes must override this method to create bean instance.

Overrides:
createComponentInstance in class AbstractInjectionTargetBean<T>
Parameters:
creationalContext - creational context
Returns:
bean instance

isFullInit

public boolean isFullInit()

setFullInit

public void setFullInit(boolean fullInit)

addQualifier

public void addQualifier(Annotation qualifier)
Description copied from class: AbstractOwbBean
Add new qualifier.

Specified by:
addQualifier in interface OwbBean<T>
Overrides:
addQualifier in class AbstractOwbBean<T>
Parameters:
qualifier - new qualifier

getConstructor

public Constructor<T> getConstructor()
Get constructor.

Returns:
constructor

setConstructor

public void setConstructor(Constructor<T> constructor)
Set constructor.

Parameters:
constructor - constructor instance

isPassivationCapable

public boolean isPassivationCapable()
Description copied from interface: OwbBean
True if passivation capable false otherwise.

Specified by:
isPassivationCapable in interface OwbBean<T>
Overrides:
isPassivationCapable in class AbstractOwbBean<T>
Returns:
true if this bean is passivation capable

setIsAbstractDecorator

public void setIsAbstractDecorator(boolean flag)


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