Spring Web Services Framework

org.springframework.xml.xpath
Class XPathExpressionFactoryBean

java.lang.Object
  extended by org.springframework.xml.xpath.XPathExpressionFactoryBean
All Implemented Interfaces:
FactoryBean, InitializingBean

public class XPathExpressionFactoryBean
extends Object
implements FactoryBean, 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)

Constructor Summary
XPathExpressionFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 Object getObject()
           
 Class getObjectType()
           
 boolean isSingleton()
           
 void setExpression(String expression)
          Sets the XPath expression.
 void setNamespaces(Properties namespaces)
          Sets the namespaces for the expressions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathExpressionFactoryBean

public XPathExpressionFactoryBean()
Method Detail

setExpression

public void setExpression(String expression)
Sets the XPath expression. Setting this property is required.


setNamespaces

public void setNamespaces(Properties namespaces)
Sets the namespaces for the expressions. The given properties binds string prefixes to string namespaces.


afterPropertiesSet

public void afterPropertiesSet()
                        throws IllegalStateException,
                               XPathParseException
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
IllegalStateException
XPathParseException

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface FactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean

Spring Web Services Framework

Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.