public class TransactionAwareAttributeExtractor extends java.lang.Object implements AttributeExtractor
Modifier and Type | Field and Description |
---|---|
private ReadWriteCopyStrategy<Element> |
copyStrategy |
private AttributeExtractor |
delegate |
Constructor and Description |
---|
TransactionAwareAttributeExtractor(ReadWriteCopyStrategy<Element> copyStrategy,
AttributeExtractor delegate)
Creates an attributed delegating to the supplied extractor, via the given copy strategy.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
attributeFor(Element element,
java.lang.String attributeName)
Extract the attribute value.
|
private final ReadWriteCopyStrategy<Element> copyStrategy
private final AttributeExtractor delegate
public TransactionAwareAttributeExtractor(ReadWriteCopyStrategy<Element> copyStrategy, AttributeExtractor delegate)
copyStrategy
- copy strategy used by the transactional storedelegate
- original configured attribute extractorpublic java.lang.Object attributeFor(Element element, java.lang.String attributeName) throws AttributeExtractorException
attributeFor
in interface AttributeExtractor
element
- the cache element to inspectattributeName
- the name of the requested attributeAttributeExtractorException
- if the attribute cannot be found or extracted