|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.search.attribute.ReflectionAttributeExtractor
public class ReflectionAttributeExtractor
Built-in search attribute extractor driven by method/value dotted expression
chains.
The expression chain must start with one of either "key", "value", or
"element". From the starting object a chain of either method calls or field
names follows. Method calls and field names can be freely mixed in the chain.
Some examples:
| Constructor Summary | |
|---|---|
ReflectionAttributeExtractor(java.lang.String expression)
Create a new ReflectionAttributeExtractor |
|
| Method Summary | |
|---|---|
java.lang.Object |
attributeFor(Element e)
Evaluate the expression for the given element |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectionAttributeExtractor(java.lang.String expression)
throws InvalidConfigurationException
expression -
InvalidConfigurationException| Method Detail |
|---|
public java.lang.Object attributeFor(Element e)
throws AttributeExtractorException
attributeFor in interface AttributeExtractore - the cache element to inspect
AttributeExtractorException - if there is an error in evaluating the expression
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||