org.springframework.xml.xpath
Class XPathExpressionFactoryBean
java.lang.Object
org.springframework.xml.xpath.XPathExpressionFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
public class XPathExpressionFactoryBean
- extends java.lang.Object
- implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
Spring 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.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
setExpression(String)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XPathExpressionFactoryBean
public XPathExpressionFactoryBean()
setExpression
public void setExpression(java.lang.String expression)
- Sets the XPath expression. Setting this property is required.
setNamespaces
public void setNamespaces(java.util.Properties namespaces)
- Sets the namespaces for the expressions. The given properties binds string prefixes to string namespaces.
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.IllegalStateException,
XPathParseException
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.IllegalStateException
XPathParseException
getObject
public java.lang.Object getObject()
throws java.lang.Exception
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean
- Throws:
java.lang.Exception
getObjectType
public java.lang.Class getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean
Copyright � 2005-2008 The Spring Web Services Framework. All Rights Reserved.