public class NewManagedBean<T> extends ManagedBean<T> implements NewBean<T>
New binding annotation.
It is defined as concrete java class component.
isAbstractDecoratordecorators, inheritedMetaData, interceptorStackapiTypes, enabled, implQualifiers, injectionPoints, logger, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansContext, webBeansType| Constructor and Description |
|---|
NewManagedBean(Class<T> returnType,
WebBeansType definedType,
WebBeansContext webBeansContext) |
| Modifier and Type | Method and Description |
|---|---|
protected T |
createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Creates the instance of the bean that has a specific implementation
type.
|
protected void |
destroyInstance(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Destroy the instance of the bean.
|
WebBeansType |
getDefinedType() |
boolean |
isDependent()
always true for New qualifier
|
addQualifier, createComponentInstance, getConstructor, isFullInit, isPassivationCapable, setConstructor, setFullInit, setIsAbstractDecoratoraddInjectedField, addInjectedFieldToSuper, addInjectedMethod, addInjectedMethodToSuper, addObservableMethod, afterConstructor, beforeConstructor, createDefaultInstance, destroyComponentInstance, getAnnotatedType, getDecoratorStack, getInheritedMetaData, getInjectedFields, getInjectedFromSuperFields, getInjectedFromSuperMethods, getInjectedMethods, getInterceptorStack, getObservableMethods, injectFields, injectMethods, injectResources, injectSuperFields, injectSuperMethods, postConstruct, postConstructDefault, preDestroy, preDestroyDefault, setAnnotatedType, setInheritedMetaData, validatePassivationDependenciesaddApiType, addInjectionPoint, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, equals, getBeanClass, getId, getInjectionPoint, getInjectionPoints, getLogger, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansContext, getWebBeansType, hashCode, isAlternative, isEnabled, isNullable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddApiType, addInjectionPoint, addStereoType, createNewInstance, destroyCreatedInstance, getId, getInjectionPoint, getOwbStereotypes, getReturnType, getWebBeansContext, getWebBeansType, isEnabled, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBeanpublic NewManagedBean(Class<T> returnType, WebBeansType definedType, WebBeansContext webBeansContext)
protected T createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
AbstractInjectionTargetBeancreateInstance in class AbstractInjectionTargetBean<T>creationalContext - the contextual instance shall be created inprotected void destroyInstance(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
AbstractInjectionTargetBeandestroyInstance in class AbstractInjectionTargetBean<T>instance - instance of the bean that is being destroyedcreationalContext - the contextual instance has been created inpublic WebBeansType getDefinedType()
public boolean isDependent()
isDependent in interface OwbBean<T>isDependent in class AbstractOwbBean<T>true if this is a dependent beanCopyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.