|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.extensions.cdi.core.api.config.AbstractAttributeAware
public abstract class AbstractAttributeAware
Base implementation which implements AttributeAware
to support custom attributes.
Constructor Summary | |
---|---|
AbstractAttributeAware()
|
Method Summary | ||
---|---|---|
boolean |
containsAttribute(String name)
Returns true if there is a value for the given name |
|
|
getAttribute(String name,
Class<T> targetType)
Exposes the value for the given name |
|
protected void |
initConfig()
|
|
boolean |
setAttribute(String name,
Object value)
Sets an attribute |
|
boolean |
setAttribute(String name,
Object value,
boolean forceOverride)
Sets or updates an attribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAttributeAware()
Method Detail |
---|
public boolean setAttribute(String name, Object value)
setAttribute
in interface AttributeAware
name
- name of the attributevalue
- value of the attribute (null values aren't allowed)
public boolean setAttribute(String name, Object value, boolean forceOverride)
setAttribute
in interface AttributeAware
name
- name of the attributevalue
- value of the attributeforceOverride
- flag which indicates if it is permitted to override an existing value
public boolean containsAttribute(String name)
containsAttribute
in interface AttributeAware
name
- name of the argument in question
public <T> T getAttribute(String name, Class<T> targetType)
getAttribute
in interface AttributeAware
T
- current typename
- name of the attributetargetType
- type of the attribute
protected void initConfig()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |