public class XPathExpressionFactoryBean extends Object implements FactoryBean<XPathExpression>, InitializingBean
FactoryBean for XPathExpression object. Facilitates injection of XPath expressions into
endpoint beans.
Uses XPathExpressionFactory underneath, so support is provided for JAXP 1.3, and Jaxen XPaths.
setExpression(String)| Constructor and Description |
|---|
XPathExpressionFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
XPathExpression |
getObject() |
Class<? extends XPathExpression> |
getObjectType() |
boolean |
isSingleton() |
void |
setExpression(String expression)
Sets the XPath expression.
|
void |
setNamespaces(Map<String,String> namespaces)
Sets the namespaces for the expressions.
|
public void setExpression(String expression)
public void setNamespaces(Map<String,String> namespaces)
public void afterPropertiesSet()
throws IllegalStateException,
XPathParseException
afterPropertiesSet in interface InitializingBeanIllegalStateExceptionXPathParseExceptionpublic XPathExpression getObject() throws Exception
getObject in interface FactoryBean<XPathExpression>Exceptionpublic Class<? extends XPathExpression> getObjectType()
getObjectType in interface FactoryBean<XPathExpression>public boolean isSingleton()
isSingleton in interface FactoryBean<XPathExpression>