Package org.jboss.weld.util.bean
Class ForwardingBeanAttributes<T>
- java.lang.Object
-
- org.jboss.weld.util.bean.ForwardingBeanAttributes<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
BeanAttributes<T>
- Direct Known Subclasses:
CommonBean,IsolatedForwardingBean
public abstract class ForwardingBeanAttributes<T> extends Object implements BeanAttributes<T>
DelegatingBeanAttributes.- Author:
- Jozef Hartinger
-
-
Constructor Summary
Constructors Constructor Description ForwardingBeanAttributes()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract BeanAttributes<T>attributes()booleanequals(Object obj)StringgetName()Obtains the EL name of a bean, if it has one.Set<Annotation>getQualifiers()Obtains the qualifiers of the bean.Class<? extends Annotation>getScope()Obtains the scope of the bean.Set<Class<? extends Annotation>>getStereotypes()Obtains the stereotypes of the bean.Set<Type>getTypes()Obtains the bean types of the bean.inthashCode()booleanisAlternative()Determines if the bean is an alternative.
-
-
-
Method Detail
-
attributes
protected abstract BeanAttributes<T> attributes()
-
getTypes
public Set<Type> getTypes()
Description copied from interface:BeanAttributesObtains the bean types of the bean.- Specified by:
getTypesin interfaceBeanAttributes<T>- Returns:
- the bean types
-
getQualifiers
public Set<Annotation> getQualifiers()
Description copied from interface:BeanAttributesObtains the qualifiers of the bean.- Specified by:
getQualifiersin interfaceBeanAttributes<T>- Returns:
- the qualifiers
-
getScope
public Class<? extends Annotation> getScope()
Description copied from interface:BeanAttributesObtains the scope of the bean.- Specified by:
getScopein interfaceBeanAttributes<T>- Returns:
- the scope
-
getName
public String getName()
Description copied from interface:BeanAttributesObtains the EL name of a bean, if it has one.- Specified by:
getNamein interfaceBeanAttributes<T>- Returns:
- the EL name
-
getStereotypes
public Set<Class<? extends Annotation>> getStereotypes()
Description copied from interface:BeanAttributesObtains the stereotypes of the bean.- Specified by:
getStereotypesin interfaceBeanAttributes<T>- Returns:
- the set of stereotypes
-
isAlternative
public boolean isAlternative()
Description copied from interface:BeanAttributesDetermines if the bean is an alternative. A custom implementation ofBeanmay implementPrioritizedin order to be selected for the application.Prioritized.getPriority()determines the priority used to resolve ambiguities.- Specified by:
isAlternativein interfaceBeanAttributes<T>- Returns:
- true if the bean is an alternative, and false otherwise.
-
-