Class MapAttributeResolver
java.lang.Object
org.gatein.pc.api.invocation.resolver.MapAttributeResolver
- All Implemented Interfaces:
AttributeResolver
- Version:
- $Revision: 7228 $
- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(Object attrKey) Return an attribute from this resolver.getKeys()Returns the set of keys of the attributes bound in that resolver.voidsetAttribute(Object attrKey, Object attrValue) Update an attribute value on this resolve.
-
Constructor Details
-
MapAttributeResolver
-
MapAttributeResolver
public MapAttributeResolver()
-
-
Method Details
-
getKeys
Description copied from interface:AttributeResolverReturns the set of keys of the attributes bound in that resolver.- Specified by:
getKeysin interfaceAttributeResolver- Returns:
- a set of keys
-
getAttribute
Description copied from interface:AttributeResolverReturn an attribute from this resolver.- Specified by:
getAttributein interfaceAttributeResolver- Returns:
- the attribute value or null if it is not found
- Throws:
IllegalArgumentException- if the attribute key is not valid
-
setAttribute
Description copied from interface:AttributeResolverUpdate an attribute value on this resolve. If the attribute value is null the resolver must treat the operation as a removal of the attribute.- Specified by:
setAttributein interfaceAttributeResolverattrValue- the attribute value- Throws:
IllegalArgumentException- if the attribute key is not valid
-