public class XPathExpressionFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<XPathExpression>, org.springframework.beans.factory.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 org.springframework.beans.factory.InitializingBeanIllegalStateExceptionXPathParseExceptionpublic XPathExpression getObject() throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<XPathExpression>Exceptionpublic Class<? extends XPathExpression> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<XPathExpression>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<XPathExpression>Copyright © 2022 Pivotal Software. All rights reserved.