public class ReflectionAttributeExtractor extends Object implements AttributeExtractor
Constructor and Description |
---|
ReflectionAttributeExtractor(String expression)
Create a new ReflectionAttributeExtractor
|
Modifier and Type | Method and Description |
---|---|
Object |
attributeFor(Element e,
String attributeName)
Evaluate the expression for the given element
|
public ReflectionAttributeExtractor(String expression) throws InvalidConfigurationException
expression
- InvalidConfigurationException
public Object attributeFor(Element e, String attributeName) throws AttributeExtractorException
attributeFor
in interface AttributeExtractor
e
- the cache element to inspectattributeName
- the name of the requested attributeAttributeExtractorException
- if there is an error in evaluating the expressionCopyright © 2003–2016 Terracotta, Inc.. All rights reserved.