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.InitializingBean
IllegalStateException
XPathParseException
public XPathExpression getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<XPathExpression>
Exception
public 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>