Class XPathAnnotationExpressionFactory

java.lang.Object
org.apache.camel.support.language.DefaultAnnotationExpressionFactory
org.apache.camel.language.xpath.XPathAnnotationExpressionFactory
All Implemented Interfaces:
org.apache.camel.support.language.AnnotationExpressionFactory

public class XPathAnnotationExpressionFactory extends org.apache.camel.support.language.DefaultAnnotationExpressionFactory
Factory for the XPath expression annotations.
  • Constructor Details

    • XPathAnnotationExpressionFactory

      public XPathAnnotationExpressionFactory()
  • Method Details

    • createExpression

      public org.apache.camel.Expression createExpression(org.apache.camel.CamelContext camelContext, Annotation annotation, org.apache.camel.support.language.LanguageAnnotation languageAnnotation, Class<?> expressionReturnType)
      Specified by:
      createExpression in interface org.apache.camel.support.language.AnnotationExpressionFactory
      Overrides:
      createExpression in class org.apache.camel.support.language.DefaultAnnotationExpressionFactory
    • getResultType

      protected Class<?> getResultType(Annotation annotation)
    • getExpressionNameSpacePrefix

      protected org.apache.camel.support.language.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 'headerName' then the name of the header we want to apply the XPath expression to. Otherwise, null will be returned
    • getPropertyName

      protected String getPropertyName(Annotation annotation)
      Extracts the value of the property 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 'propertyName' then the name of the property we want to apply the XPath expression to. Otherwise, null will be returned
    • isLogNamespaces

      protected boolean isLogNamespaces(Annotation annotation)
    • isPreCompile

      protected boolean isPreCompile(Annotation annotation)