org.mule.util.properties
Class JXPathPropertyExtractor

java.lang.Object
  extended by org.mule.util.properties.JXPathPropertyExtractor
All Implemented Interfaces:
PropertyExtractor

public class JXPathPropertyExtractor
extends Object
implements PropertyExtractor

Will extract properties based on Xpath expressions. Will work on Xml/Dom and beans


Field Summary
protected  Log logger
          logger used by this class
 
Constructor Summary
JXPathPropertyExtractor()
           
 
Method Summary
 Object getProperty(String name, Object message)
          Extracts a single property from the message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected transient Log logger
logger used by this class

Constructor Detail

JXPathPropertyExtractor

public JXPathPropertyExtractor()
Method Detail

getProperty

public Object getProperty(String name,
                          Object message)
Description copied from interface: PropertyExtractor
Extracts a single property from the message

Specified by:
getProperty in interface PropertyExtractor
Parameters:
name - the property name or expression
message - the message to extract from
Returns:
the result of the extraction or null if the property was not found


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.