Package org.apache.camel.language.xpath
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 Summary
Constructors Constructor Description XPathAnnotationExpressionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.Expression
createExpression(org.apache.camel.CamelContext camelContext, Annotation annotation, org.apache.camel.support.language.LanguageAnnotation languageAnnotation, Class<?> expressionReturnType)
protected org.apache.camel.support.language.NamespacePrefix[]
getExpressionNameSpacePrefix(Annotation annotation)
protected String
getHeaderName(Annotation annotation)
Extracts the value of the header method in the Annotation.protected String
getPropertyName(Annotation annotation)
Extracts the value of the property method in the Annotation.protected Class<?>
getResultType(Annotation annotation)
protected boolean
isLogNamespaces(Annotation annotation)
protected boolean
isPreCompile(Annotation annotation)
-
-
-
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 interfaceorg.apache.camel.support.language.AnnotationExpressionFactory
- Overrides:
createExpression
in classorg.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)
-
-