|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mule.config.endpoint.RegistryBackedAnnotationsParserFactory
public class RegistryBackedAnnotationsParserFactory
Loads the default expression, router and endpoint parsers provided by Mule. Mule modules can add to these by registering the additional parsers in the 'registry-bootstrap.properties' for custom module.
Field Summary | |
---|---|
protected Log |
logger
logger used by this class |
protected MuleContext |
muleContext
|
Constructor Summary | |
---|---|
RegistryBackedAnnotationsParserFactory()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final transient Log logger
protected MuleContext muleContext
Constructor Detail |
---|
public RegistryBackedAnnotationsParserFactory()
Method Detail |
---|
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 processed
public 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |