Class 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 Detail

      • XPathAnnotationExpressionFactory

        public XPathAnnotationExpressionFactory()
    • Method Detail

      • 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 'header' then the name of the header 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)