public abstract class AbstractEndpointAnnotationParser extends Object implements EndpointAnnotationParser, MuleContextAware
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_BUILDER_POSTFIX |
protected MuleContext |
muleContext |
Constructor and Description |
---|
AbstractEndpointAnnotationParser() |
Modifier and Type | Method and Description |
---|---|
protected Properties |
convertProperties(String[] properties) |
protected abstract AnnotatedEndpointData |
createEndpointData(Annotation annotation) |
protected AnnotatedEndpointHelper |
getEndpointHelper() |
protected abstract String |
getIdentifier() |
protected <T> T |
lookupConfig(String location,
Class<T> type) |
InboundEndpoint |
parseInboundEndpoint(Annotation annotation,
Map metaInfo)
Creates an inbound endpoint from the annotation.
|
OutboundEndpoint |
parseOutboundEndpoint(Annotation annotation,
Map metaInfo)
Creates an outbound endpoint from the annotation.
|
void |
setMuleContext(MuleContext context) |
boolean |
supports(Annotation annotation,
Class clazz,
Member member)
Determines whether this parser can process the current annotation.
|
public static final String ENDPOINT_BUILDER_POSTFIX
protected MuleContext muleContext
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
protected AnnotatedEndpointHelper getEndpointHelper() throws MuleException
MuleException
public OutboundEndpoint parseOutboundEndpoint(Annotation annotation, Map metaInfo) throws MuleException
EndpointAnnotationParser
parseOutboundEndpoint
in interface EndpointAnnotationParser
annotation
- the annotation to processmetaInfo
- any additional info that can be used to construct the endpoint. Typically a connector name might be
in this map so that all endpoints for the current object can share the same connectorOutboundEndpoint
object configured according to the annotationMuleException
- if the outbound endpoint cannot be created. A Mule-specific error will be thrown.public InboundEndpoint parseInboundEndpoint(Annotation annotation, Map metaInfo) throws MuleException
EndpointAnnotationParser
parseInboundEndpoint
in interface EndpointAnnotationParser
annotation
- the annotation to processmetaInfo
- any additional info that can be used to construct the endpoint. Typically a connector name might be
in this map so that all endpoints for the current object can share the same connectorInboundEndpoint
object configured according to the annotationMuleException
- if the inbound endpoint cannot be created. A Mule-specific error will be thrown.public boolean supports(Annotation annotation, Class clazz, Member member)
EndpointAnnotationParser
supports
in interface EndpointAnnotationParser
annotation
- the annotation being processedclazz
- the class on which the annotation was foundmember
- the member on which the annotation was found inside the class. This is only set when the annotation
was either set on a Method
, Field
or Constructor
class member, otherwise this value is null.protected Properties convertProperties(String[] properties)
protected <T> T lookupConfig(String location, Class<T> type) throws ConfigurationException
ConfigurationException
protected abstract String getIdentifier()
protected abstract AnnotatedEndpointData createEndpointData(Annotation annotation) throws MuleException
MuleException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.