|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.impl.endpoint.DefaultAnnotationsParserFactory
public class DefaultAnnotationsParserFactory
Loads the default endpoint parsers provided by the annotations module. Currently, there is only one,
the ReplyAnnotationParser, the others are currently supplied by iBeans.
| Field Summary | |
|---|---|
protected Log |
logger
logger used by this class |
protected MuleContext |
muleContext
|
| Constructor Summary | |
|---|---|
DefaultAnnotationsParserFactory()
|
|
| Method Summary | |
|---|---|
protected void |
addDefaultParsers()
|
protected void |
addDefaultProcessors()
|
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. |
ExpressionParser |
getExpressionParser(Annotation annotation)
Retrieves a parser for the given annotation, where the annotation is an Expression annotation; one annotated with the Evaluator annotation. |
List<ObjectProcessor> |
getProcessors()
A list of Object processors that should be registered for this factory. |
RouterAnnotationParser |
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 |
registerEndpointParser(EndpointAnnotationParser parser)
|
protected void |
registerExpressionParser(ExpressionParser parser)
|
protected void |
registerObjectProcessor(ObjectProcessor processor)
|
protected void |
registerRouterParser(RouterAnnotationParser parser)
|
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 DefaultAnnotationsParserFactory()
| Method Detail |
|---|
public void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwareprotected void addDefaultParsers()
protected void addDefaultProcessors()
public EndpointAnnotationParser getEndpointParser(Annotation annotation,
Class aClass,
Member member)
AnnotationsParserFactory
getEndpointParser in interface AnnotationsParserFactoryannotation - 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 ExpressionParser getExpressionParser(Annotation annotation)
AnnotationsParserFactoryEvaluator annotation.
getExpressionParser in interface AnnotationsParserFactoryannotation - the annotation being processed
public RouterAnnotationParser getRouterParser(Annotation annotation,
Class aClass,
Member member)
AnnotationsParserFactoryRouter 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 AnnotationsParserFactoryannotation - 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 List<ObjectProcessor> getProcessors()
AnnotationsParserFactory
getProcessors in interface AnnotationsParserFactoryprotected void registerEndpointParser(EndpointAnnotationParser parser)
protected void registerExpressionParser(ExpressionParser parser)
protected void registerRouterParser(RouterAnnotationParser parser)
protected void registerObjectProcessor(ObjectProcessor processor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||