public class ThirdpartyBeanImpl<T> extends AbstractOwbBean<T> implements javax.enterprise.inject.spi.Bean<T>
apiTypes, enabled, implQualifiers, injectionPoints, logger, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansContext, webBeansType| Constructor and Description |
|---|
ThirdpartyBeanImpl(javax.enterprise.inject.spi.Bean<T> bean,
WebBeansContext webBeansContext) |
| Modifier and Type | Method and Description |
|---|---|
T |
create(javax.enterprise.context.spi.CreationalContext<T> context) |
protected T |
createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Creates the instance of the bean that has a specific implementation
type.
|
void |
destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> context) |
protected void |
destroyInstance(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Destroy the instance of the bean.
|
boolean |
equals(Object other) |
Class<?> |
getBeanClass()
Get return types of the bean.
|
String |
getId()
get the unique Id of the bean.
|
Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints() |
String |
getName()
Name of the bean.
|
Set<Annotation> |
getQualifiers() |
Class<? extends Annotation> |
getScope() |
Set<Class<? extends Annotation>> |
getStereotypes() |
Set<Type> |
getTypes() |
int |
hashCode()
We need to override the hash code from the AbstractOwbBean
and delegate to the shaded instance.
|
boolean |
isAlternative() |
boolean |
isNullable() |
boolean |
isPassivationCapable()
True if passivation capable false otherwise.
|
addApiType, addInjectionPoint, addQualifier, addStereoType, createNewInstance, destroyCreatedInstance, getInjectionPoint, getLogger, getManager, getOwbStereotypes, getReturnType, getWebBeansContext, getWebBeansType, isDependent, isEnabled, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, toString, validatePassivationDependenciespublic ThirdpartyBeanImpl(javax.enterprise.inject.spi.Bean<T> bean, WebBeansContext webBeansContext)
public Set<Annotation> getQualifiers()
getQualifiers in interface javax.enterprise.inject.spi.Bean<T>getQualifiers in class AbstractOwbBean<T>public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
AbstractOwbBeangetInjectionPoints in interface javax.enterprise.inject.spi.Bean<T>getInjectionPoints in class AbstractOwbBean<T>public String getName()
AbstractOwbBeangetName in interface javax.enterprise.inject.spi.Bean<T>getName in class AbstractOwbBean<T>public Class<? extends Annotation> getScope()
getScope in interface javax.enterprise.inject.spi.Bean<T>getScope in class AbstractOwbBean<T>public Set<Type> getTypes()
getTypes in interface javax.enterprise.inject.spi.Bean<T>getTypes in class AbstractOwbBean<T>public boolean isNullable()
AbstractOwbBeanisNullable in interface javax.enterprise.inject.spi.Bean<T>isNullable in class AbstractOwbBean<T>public T create(javax.enterprise.context.spi.CreationalContext<T> context)
AbstractOwbBeancreate in interface javax.enterprise.context.spi.Contextual<T>create in class AbstractOwbBean<T>public void destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> context)
destroy in interface javax.enterprise.context.spi.Contextual<T>destroy in class AbstractOwbBean<T>public String getId()
AbstractOwbBeanpublic boolean isPassivationCapable()
OwbBeanisPassivationCapable in interface OwbBean<T>isPassivationCapable in class AbstractOwbBean<T>protected T createInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
AbstractOwbBeancreateInstance in class AbstractOwbBean<T>creationalContext - the contextual instance shall be created inprotected void destroyInstance(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
AbstractOwbBeandestroyInstance in class AbstractOwbBean<T>instance - instance of the bean that is being destroyedcreationalContext - the contextual instance has been created inpublic Class<?> getBeanClass()
AbstractOwbBeangetBeanClass in interface javax.enterprise.inject.spi.Bean<T>getBeanClass in class AbstractOwbBean<T>public Set<Class<? extends Annotation>> getStereotypes()
AbstractOwbBeangetStereotypes in interface javax.enterprise.inject.spi.Bean<T>getStereotypes in class AbstractOwbBean<T>public boolean isAlternative()
AbstractOwbBeanisAlternative in interface javax.enterprise.inject.spi.Bean<T>isAlternative in class AbstractOwbBean<T>public int hashCode()
hashCode in class AbstractOwbBean<T>public boolean equals(Object other)
equals in class AbstractOwbBean<T>Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.