org.mule.transport.quartz.config
Class ScheduleAnnotationParser
java.lang.Object
org.mule.config.endpoint.AbstractEndpointAnnotationParser
org.mule.transport.quartz.config.ScheduleAnnotationParser
- All Implemented Interfaces:
- org.mule.api.context.MuleContextAware, org.mule.api.EndpointAnnotationParser
public class ScheduleAnnotationParser
- extends org.mule.config.endpoint.AbstractEndpointAnnotationParser
Creates a Quartz inbound endpoint for a service
| Fields inherited from class org.mule.config.endpoint.AbstractEndpointAnnotationParser |
ENDPOINT_BUILDER_POSTFIX, muleContext |
| Methods inherited from class org.mule.config.endpoint.AbstractEndpointAnnotationParser |
convertProperties, getEndpointHelper, lookupConfig, parseOutboundEndpoint, setMuleContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScheduleAnnotationParser
public ScheduleAnnotationParser()
parseInboundEndpoint
public org.mule.api.endpoint.InboundEndpoint parseInboundEndpoint(Annotation annotation,
Map metaInfo)
throws org.mule.api.MuleException
- Specified by:
parseInboundEndpoint in interface org.mule.api.EndpointAnnotationParser- Overrides:
parseInboundEndpoint in class org.mule.config.endpoint.AbstractEndpointAnnotationParser
- Throws:
org.mule.api.MuleException
createEndpointData
protected org.mule.config.endpoint.AnnotatedEndpointData createEndpointData(Annotation annotation)
throws org.mule.api.MuleException
- Specified by:
createEndpointData in class org.mule.config.endpoint.AbstractEndpointAnnotationParser
- Throws:
org.mule.api.MuleException
getProperties
protected String[] getProperties(Schedule schedule)
throws org.mule.api.MuleException
- Throws:
org.mule.api.MuleException
getIdentifier
protected String getIdentifier()
- Specified by:
getIdentifier in class org.mule.config.endpoint.AbstractEndpointAnnotationParser
getConnector
protected QuartzConnector getConnector()
throws org.mule.api.MuleException
- Throws:
org.mule.api.MuleException
supports
public boolean supports(Annotation annotation,
Class clazz,
Member member)
- Validates that this parser can parse the supplied annotation. Only returns true if the clazz is not an interface
and the annotation is an instance of
Schedule
- Specified by:
supports in interface org.mule.api.EndpointAnnotationParser- Overrides:
supports in class org.mule.config.endpoint.AbstractEndpointAnnotationParser
- Parameters:
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 members, otherwise this value is null.
- Returns:
- true if this parser supports the current annotation and the clazz is not an interface
- Throws:
IllegalArgumentException - if the class parameter is an interface
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.