org.apache.camel.component.bean
Class XPathAnnotationExpressionFactory
java.lang.Object
org.apache.camel.component.bean.DefaultAnnotationExpressionFactory
org.apache.camel.component.bean.XPathAnnotationExpressionFactory
- All Implemented Interfaces:
- AnnotationExpressionFactory
public class XPathAnnotationExpressionFactory
- extends DefaultAnnotationExpressionFactory
Factory for the XPath expression annotations.
- Version:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XPathAnnotationExpressionFactory
public XPathAnnotationExpressionFactory()
createExpression
public Expression createExpression(CamelContext camelContext,
Annotation annotation,
LanguageAnnotation languageAnnotation,
Class<?> expressionReturnType)
- Specified by:
createExpression
in interface AnnotationExpressionFactory
- Overrides:
createExpression
in class DefaultAnnotationExpressionFactory
getResultType
protected Class<?> getResultType(Annotation annotation)
getExpressionNameSpacePrefix
protected NamespacePrefix[] getExpressionNameSpacePrefix(Annotation annotation)
getHeaderName
protected String getHeaderName(Annotation annotation)
- Extracts the value of the header method in the Annotation. For backwards
compatibility this method will return null if the annotation's method is
not found.
- Returns:
- If the annotation has the method 'header' then the name of the
header we want to apply the XPath expression to. Otherwise null
will be returned
Apache Camel