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 the
AnnotationExpressionFactory.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.ExpressioncreateExpression(org.apache.camel.CamelContext camelContext, Annotation annotation, LanguageAnnotation languageAnnotation, Class<?> expressionReturnType) protected ObjectgetAnnotationObjectValue(Annotation annotation, String methodName) protected StringgetExpressionFromAnnotation(Annotation annotation)
-
Constructor Details
-
DefaultAnnotationExpressionFactory
public DefaultAnnotationExpressionFactory()
-
-
Method Details
-
createExpression
public org.apache.camel.Expression createExpression(org.apache.camel.CamelContext camelContext, Annotation annotation, LanguageAnnotation languageAnnotation, Class<?> expressionReturnType) - Specified by:
createExpressionin interfaceAnnotationExpressionFactory
-
getExpressionFromAnnotation
-
getAnnotationObjectValue
- Parameters:
annotation- The annotation to get the value ofmethodName- The annotation name- Returns:
- The value of the annotation
-