Class DefaultAnnotationExpressionFactory
- java.lang.Object
-
- org.apache.camel.support.language.DefaultAnnotationExpressionFactory
-
- All Implemented Interfaces:
AnnotationExpressionFactory
public class DefaultAnnotationExpressionFactory extends Object implements AnnotationExpressionFactory
Default implementation of theAnnotationExpressionFactory.
-
-
Constructor Summary
Constructors Constructor Description DefaultAnnotationExpressionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.ExpressioncreateExpression(org.apache.camel.CamelContext camelContext, Annotation annotation, LanguageAnnotation languageAnnotation, Class<?> expressionReturnType)protected ObjectgetAnnotationObjectValue(Annotation annotation, String methodName)protected StringgetExpressionFromAnnotation(Annotation annotation)
-
-
-
Method Detail
-
createExpression
public org.apache.camel.Expression createExpression(org.apache.camel.CamelContext camelContext, Annotation annotation, LanguageAnnotation languageAnnotation, Class<?> expressionReturnType)- Specified by:
createExpressionin interfaceAnnotationExpressionFactory
-
getExpressionFromAnnotation
protected String getExpressionFromAnnotation(Annotation annotation)
-
getAnnotationObjectValue
protected Object getAnnotationObjectValue(Annotation annotation, String methodName)
- Parameters:
annotation- The annotation to get the value ofmethodName- The annotation name- Returns:
- The value of the annotation
-
-