public class AnnotationProcessorModule extends AnnotationProcessorClass implements Module
components, elements, innerElement, types
Constructor and Description |
---|
AnnotationProcessorModule(TypeElement innerElement,
Types types,
Elements elements,
List<Component> components) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ModelVisitor visitor) |
String |
getAnnotatedSchemaLocation() |
String |
getConfigElementName()
Retrieve the name of the config element
|
List<Field> |
getConfigurableFields()
Retrieve a list of fields that have been annotated with
Configurable
This method will recursively go thru all superclasses as well. |
com.google.common.base.Optional<Field<Type>> |
getConnectionStrategy() |
String |
getCurrentSchemaLocation() |
String |
getDescription()
Get the description of this module
|
com.google.common.base.Optional<DeclaredType> |
getExceptionHandler() |
List<FilterMethod> |
getFilterMethods()
Get a list of all methods annotated with @Filter
This method will recursively go thru all superclasses as well.
|
String |
getFriendlyName()
Returns the friendlyName attribute if exists, if not, it will transform the name attribute.
|
ModuleKind |
getKind() |
Method |
getLifecycleMethod(String phaseName)
Retrieve the method that needs to be called during a particular lifecycle phase.
|
org.mule.common.MuleVersion |
getMinMuleVersion()
Get the minimum Mule version supported by this module
|
String |
getModuleName() |
String |
getModuleSchemaVersion() |
List<ProcessorMethod> |
getProcessorMethods()
Get a list of all methods annotated with @Processor
This method will recursively go thru all superclasses as well.
|
Method |
getQueryTranslatorMethod() |
List<RestCall> |
getRestCalls()
Retrieve a list of all the methods inside the module that are annotated
with
RestCall |
Field |
getRestHttpClientField()
Retrieve the field annotated with
RestHttpClient |
List<SourceMethod> |
getSourceMethods()
Get a list of all methods annotated with @Source
This method will recursively go thru all superclasses as well.
|
List<TransformerMethod> |
getTransformerMethods()
Retrieve a list of all the methods inside the module that are annotated
with
Transformer |
List<TransformerResolverMethod> |
getTransformerResolverMethods()
Retrieve a list of all the methods inside the module that are annotated
with
TransformerResolver |
String |
getVersionedSchemaLocation() |
String |
getXmlNamespace() |
boolean |
hasConfigurableWithType(Class<?> parameterType) |
boolean |
hasDynamicMetadata()
Returns true if the connector has (1) minMuleVersion 3.4.x or above,
and (2) one of the following is fulfilled:
support both datasense methods (@MetaDataRetriever and @MetaDataKeyRetriever, soon to be deprecated for @MetaDataCategories)
either the current module's manager, or any of its @Processors, has a @MetaDataCategory component
|
boolean |
hasFilters()
True if the module has at least one method annotated with
Filter |
boolean |
hasMetaDataScope() |
boolean |
hasMethodWithName(String methodName) |
boolean |
hasProcessorMethodWithParameter(Class<?> parameterType) |
boolean |
hasProcessors()
True if the module has at least one method annotated with
Processor |
boolean |
hasQueryTranslator() |
boolean |
hasRestCalls()
True if the module has at least one method annotated with
RestCall |
boolean |
hasSources()
True if the module has at least one method annotated with
Source |
boolean |
hasTransformerResolver()
True if the module has at least one method annotated with
TransformerResolver |
boolean |
hasTransformers()
True if the module has at least one method annotated with
Transformer |
boolean |
isConnector()
Check if the module is annotated with
Connector |
boolean |
isModule()
Check if the module is annotated with
Module |
ModuleComponentManager |
manager()
Returns the manager for the
ModuleComponent of this module |
DeclaredType |
metaDataScope() |
boolean |
needsConfig()
Return true if this module requires a config element or false if it can work
without one.
|
Module |
parentModule() |
List<AnnotationValue> |
reconnectOn() |
com.google.common.base.Optional<Method> |
testConnectivityMethod() |
boolean |
usesPooling() |
getInjectFields, getMetaDataKeyRetrieverMethod, getMetaDataOutputRetrieverMethod, getMetaDataRetrieverMethod
getClassName, getFields, getFieldsAnnotatedWith, getFirstMethodAnnotatedWith, getInheritedFields, getMethods, getMethodsAnnotatedWith, getPackage, getPackageName, getPathToSourceFile, getQualifiedName, getRecursivelyAnnotationProcessorMethodsAnnotatedWith, getRecursivelyFirstMethodAnnotatedWith, getRecursivelyMethodsAnnotatedWith, getRecursivelyMethodsAnnotatedWith, getSuperClass, hasFieldAnnotatedWith, hasNoArgConstructor, hasSuperClass, inheritsFrom, inheritsFrom, isArrayOrList, isBigDecimal, isBigInteger, isBoolean, isCalendar, isChar, isCollection, isComplexType, isComplexTypeWithGetterAndSetter, isDate, isDouble, isDsqlQueryObject, isEnum, isFloat, isHttpCallback, isInteger, isInterface, isLong, isMap, isNestedProcessor, isParametrized, isPrimitive, isSet, isString, isURL, isXmlType
asType, asTypeMirror, equals, getAnnotation, getAnnotationFieldValue, getAnnotationMirrors, getJavaDocParameterSummary, getJavaDocSummary, getJavaDocTagContent, getName, getThrowsComment, getTypeArguments, getXmlDeclaredChilds, hasAnnotation, hashCode, hasJavaDocTag, hasTypeArguments, isAbstract, isFinal, isPrivate, isProtected, isPublic, isReservedIdentifier, isStatic, unwrap
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getInjectFields, getMetaDataKeyRetrieverMethod, getMetaDataOutputRetrieverMethod, getMetaDataRetrieverMethod
getClassName, getFields, getFieldsAnnotatedWith, getFirstMethodAnnotatedWith, getInheritedFields, getMethods, getMethodsAnnotatedWith, getPackage, getPackageName, getPathToSourceFile, getQualifiedName, getRecursivelyAnnotationProcessorMethodsAnnotatedWith, getRecursivelyFirstMethodAnnotatedWith, getRecursivelyMethodsAnnotatedWith, getRecursivelyMethodsAnnotatedWith, getSuperClass, hasFieldAnnotatedWith, hasNoArgConstructor, hasSuperClass, inheritsFrom, inheritsFrom, isDsqlQueryObject, isInterface, isParametrized, isPrimitive
asType, asTypeMirror, getName, isReservedIdentifier, unwrap
getAnnotation, getAnnotationMirrors, hasAnnotation
getJavaDocParameterSummary, getJavaDocSummary, getJavaDocTagContent, getThrowsComment, hasJavaDocTag
isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic
getTypeArguments, getXmlDeclaredChilds, hasTypeArguments
isArrayOrList, isBigDecimal, isBigInteger, isBoolean, isCalendar, isChar, isCollection, isComplexType, isComplexTypeWithGetterAndSetter, isDate, isDouble, isEnum, isFloat, isHttpCallback, isInteger, isLong, isMap, isNestedProcessor, isSet, isString, isURL, isXmlType
public AnnotationProcessorModule(TypeElement innerElement, Types types, Elements elements, List<Component> components)
public Module parentModule()
parentModule
in interface Module
public boolean needsConfig()
Module
needsConfig
in interface Module
public boolean hasMethodWithName(String methodName)
hasMethodWithName
in interface Module
public boolean hasQueryTranslator()
hasQueryTranslator
in interface Module
public ModuleComponentManager manager()
Module
ModuleComponent
of this modulepublic com.google.common.base.Optional<Field<Type>> getConnectionStrategy()
getConnectionStrategy
in interface Module
public boolean hasProcessorMethodWithParameter(Class<?> parameterType)
hasProcessorMethodWithParameter
in interface Module
public boolean hasConfigurableWithType(Class<?> parameterType)
hasConfigurableWithType
in interface Module
public boolean usesPooling()
usesPooling
in interface Module
public org.mule.common.MuleVersion getMinMuleVersion()
Module
getMinMuleVersion
in interface Module
public String getXmlNamespace()
getXmlNamespace
in interface Module
public String getModuleName()
getModuleName
in interface Module
public String getAnnotatedSchemaLocation()
getAnnotatedSchemaLocation
in interface Module
public String getVersionedSchemaLocation()
getVersionedSchemaLocation
in interface Module
public String getCurrentSchemaLocation()
getCurrentSchemaLocation
in interface Module
public String getModuleSchemaVersion()
getModuleSchemaVersion
in interface Module
public String getFriendlyName()
Module
getFriendlyName
in interface Module
public String getDescription()
Module
getDescription
in interface Module
public List<SourceMethod> getSourceMethods()
Module
getSourceMethods
in interface Module
SourceMethod}
public List<ProcessorMethod> getProcessorMethods()
Module
getProcessorMethods
in interface Module
ProcessorMethod}
public boolean isConnector()
Module
Connector
isConnector
in interface Module
public boolean isModule()
Module
Module
public boolean hasDynamicMetadata()
Module
Returns true if the connector has (1) minMuleVersion 3.4.x or above, and (2) one of the following is fulfilled:
hasDynamicMetadata
in interface Module
public List<FilterMethod> getFilterMethods()
Module
getFilterMethods
in interface Module
FilterMethod}
public List<TransformerMethod> getTransformerMethods()
Module
Transformer
getTransformerMethods
in interface Module
public List<TransformerResolverMethod> getTransformerResolverMethods()
Module
TransformerResolver
getTransformerResolverMethods
in interface Module
public List<Field> getConfigurableFields()
Module
Configurable
This method will recursively go thru all superclasses as well.getConfigurableFields
in interface Module
Configurable
public ModuleKind getKind()
public boolean hasSources()
Module
Source
hasSources
in interface Module
Source
public boolean hasProcessors()
Module
Processor
hasProcessors
in interface Module
Processor
public boolean hasFilters()
Module
Filter
hasFilters
in interface Module
Filter
public boolean hasTransformers()
Module
Transformer
hasTransformers
in interface Module
Transformer
public Method getLifecycleMethod(String phaseName)
Module
getLifecycleMethod
in interface Module
phaseName
- The name of the phase. Supported phases are:
org.mule.api.lifecycle.Startable.PHASE_NAME
,
org.mule.api.lifecycle.Stoppable.PHASE_NAME
,
org.mule.api.lifecycle.Initialisable.PHASE_NAME
,
org.mule.api.lifecycle.Disposable.PHASE_NAME
public String getConfigElementName()
Module
getConfigElementName
in interface Module
public Field getRestHttpClientField()
Module
RestHttpClient
getRestHttpClientField
in interface Module
public List<RestCall> getRestCalls()
Module
RestCall
getRestCalls
in interface Module
public boolean hasRestCalls()
Module
RestCall
hasRestCalls
in interface Module
RestCall
public boolean hasTransformerResolver()
Module
TransformerResolver
hasTransformerResolver
in interface Module
TransformerResolver
public void accept(ModelVisitor visitor)
accept
in interface Identifiable<TypeElement>
accept
in class AnnotationProcessorType
public Method getQueryTranslatorMethod()
getQueryTranslatorMethod
in interface Module
public DeclaredType metaDataScope()
metaDataScope
in interface Module
public boolean hasMetaDataScope()
hasMetaDataScope
in interface Module
public List<AnnotationValue> reconnectOn()
reconnectOn
in interface Module
public com.google.common.base.Optional<Method> testConnectivityMethod()
testConnectivityMethod
in interface Module
TestConnectivity
public com.google.common.base.Optional<DeclaredType> getExceptionHandler()
getExceptionHandler
in interface Module
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.