public interface OwbBean<T>
extends javax.enterprise.inject.spi.Bean<T>
Bean interface.
It is used internally. Do not use it. Instead use AbstractOwbBean
for extension.| Modifier and Type | Method and Description |
|---|---|
void |
addApiType(Class<?> apiType)
Adds new api type.
|
void |
addInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Adds new injection point.
|
void |
addQualifier(Annotation qualifier)
Adds qualifier.
|
void |
addStereoType(Annotation stereoType)
Adds new stereotype annotation.
|
T |
createNewInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Create an instance.
|
void |
destroyCreatedInstance(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Destroys instance.
|
String |
getId()
Gets id of the bean.
|
List<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoint(Member member)
Gets injection points for given member.
|
Set<Annotation> |
getOwbStereotypes()
Gets stereotypes annotations.
|
Class<T> |
getReturnType()
Returns bean class type
|
WebBeansContext |
getWebBeansContext() |
WebBeansType |
getWebBeansType()
Returns bean type.
|
boolean |
isDependent()
This determines if this bean is really a dependent bean,
and as such always creats a freshl instance for each
InjectionPoint.
|
boolean |
isEnabled()
Bean is enabled or not.
|
boolean |
isPassivationCapable()
True if passivation capable false otherwise.
|
boolean |
isSerializable()
Returns true if bean is capable of
serializable, false otherwise.
|
boolean |
isSpecializedBean()
Returns true if bean is a specialized bean, false otherwise.
|
void |
setEnabled(boolean enabled)
Set enableed flag.
|
void |
setImplScopeType(Annotation scopeType)
Sets bean scope type annotation.
|
void |
setName(String name)
Sets name of the bean.
|
void |
setNullable(boolean nullable)
Set nullable flag.
|
void |
setSerializable(boolean serializable)
Sets serializable flag.
|
void |
setSpecializedBean(boolean specialized)
Set specialized flag.
|
void |
validatePassivationDependencies()
If bean is passivation capable, it validate all of its dependencies.
|
void setImplScopeType(Annotation scopeType)
scopeType - bean scope type annotationWebBeansType getWebBeansType()
WebBeansTypeT createNewInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
creationalContext - creaitonal contextvoid destroyCreatedInstance(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
instance - instancecreationalContext - creationalvoid addQualifier(Annotation qualifier)
qualifier - bean qualifierboolean isSerializable()
void addStereoType(Annotation stereoType)
stereoType - stereotype annotationvoid addApiType(Class<?> apiType)
apiType - api typevoid addInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
injectionPoint - injection pointSet<Annotation> getOwbStereotypes()
void setName(String name)
name - bean nameList<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoint(Member member)
For example, if member is field, it gets all injected field's injection points of bean.
member - java membervoid setSerializable(boolean serializable)
serializable - flagvoid setNullable(boolean nullable)
nullable - flagvoid setSpecializedBean(boolean specialized)
specialized - flagboolean isSpecializedBean()
void setEnabled(boolean enabled)
enabled - flagboolean isEnabled()
String getId()
boolean isPassivationCapable()
boolean isDependent()
true if this is a dependent beanvoid validatePassivationDependencies()
WebBeansConfigurationException - if not satisfy passivation dependenciesWebBeansContext getWebBeansContext()
Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.