public class RegistryBackedAnnotationsParserFactory extends Object implements AnnotationsParserFactory, MuleContextAware
Modifier and Type | Field and Description |
---|---|
protected Log |
logger
logger used by this class
|
protected MuleContext |
muleContext |
Constructor and Description |
---|
RegistryBackedAnnotationsParserFactory() |
Modifier and Type | Method and Description |
---|---|
EndpointAnnotationParser |
getEndpointParser(Annotation annotation,
Class aClass,
Member member)
Retrieves a parser for the given annotation, the parameters passed in can be used to validate the use of
the annotation, i.e.
|
ExpressionAnnotationParser |
getExpressionParser(Annotation annotation)
Retrieves a parser for the given annotation, where the annotation is an Expression annotation; one annotated with
the
Evaluator annotation. |
MessageProcessorAnnotationParser |
getRouterParser(Annotation annotation,
Class aClass,
Member member)
Retrieves a parser for the given annotation, where the annotation is a Router annotation; one annotated with
the
Router annotation. |
protected void |
registerObjectProcessor(ObjectProcessor processor) |
void |
setMuleContext(MuleContext context) |
protected final transient Log logger
protected MuleContext muleContext
public RegistryBackedAnnotationsParserFactory()
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
public EndpointAnnotationParser getEndpointParser(Annotation annotation, Class aClass, Member member)
AnnotationsParserFactory
getEndpointParser
in interface AnnotationsParserFactory
annotation
- the annotation being processedaClass
- the class on which the annotation is definedmember
- the class member on which the annotation was defined, such as Field, Method, Constructor, or
null if a Type-level annotation.public ExpressionAnnotationParser getExpressionParser(Annotation annotation)
AnnotationsParserFactory
Evaluator
annotation.
getExpressionParser
in interface AnnotationsParserFactory
annotation
- the annotation being processedpublic MessageProcessorAnnotationParser getRouterParser(Annotation annotation, Class aClass, Member member)
AnnotationsParserFactory
Router
annotation. the parameters passed in can be used to validate the use of
the annotation, i.e. you may want to restrict annotations to only be configured on concrete classes.
getRouterParser
in interface AnnotationsParserFactory
annotation
- the annotation being processedaClass
- the class on which the annotation is definedmember
- the class member on which the annotation was defined, such as Field, Method, Constructor, or
null if a Type-level annotation.protected void registerObjectProcessor(ObjectProcessor processor)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.