public interface AttributeExtractor extends Serializable
Serializable
in order to ensure identical
extractors are used in distributed cachesModifier and Type | Method and Description |
---|---|
Object |
attributeFor(Element element,
String attributeName)
Extract the attribute value.
|
Object attributeFor(Element element, String attributeName) throws AttributeExtractorException
NOTE: null is a legal return here as well indicating that this attribute will not be available for the given element
element
- the cache element to inspectattributeName
- the name of the requested attributeAttributeExtractorException
- if the attribute cannot be found or extractedCopyright 2001-2018, Terracotta, Inc.