public class JavaBeanAttributeExtractor extends Object implements AttributeExtractor
| Constructor and Description |
|---|
JavaBeanAttributeExtractor(String beanProperty)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
attributeFor(Element element,
String attributeName)
Extract the attribute value.
|
public JavaBeanAttributeExtractor(String beanProperty)
beanProperty - the bean property name to extractpublic 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
attributeFor in interface AttributeExtractorelement - the cache element to inspectattributeName - the name of the requested attributeAttributeExtractorException - if the attribute cannot be found or extractedCopyright 2001-2021, Terracotta, Inc.