public final class RefNameDeclarationEnricher extends AbstractAnnotatedFieldDeclarationEnricher
DeclarationEnricher which looks for configurations with fields annotated with RefName.
It validates that the annotations is used properly and if so it adds a RequireNameField on the
ConfigurationDeclaration.
If the RefName annotation is used in a way which breaks the rules set on its javadoc, an
IllegalConfigurationModelDefinitionException is thrown
| Constructor and Description |
|---|
RefNameDeclarationEnricher() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAnnotationName() |
protected com.google.common.base.Predicate<Field> |
getFieldHasAnnotationPredicate() |
protected Class |
getImplementingClass() |
protected org.mule.runtime.api.meta.model.ModelProperty |
getModelProperty(Field field) |
protected org.mule.runtime.extension.api.loader.WalkingDeclarationEnricher.DeclarationEnricherWalkDelegate |
getWalkDelegate(com.google.common.base.Predicate<Field> fieldHasAnnotationPredicate) |
doEnrich, getExecutionPhase, getWalkDelegate, validateprotected org.mule.runtime.extension.api.loader.WalkingDeclarationEnricher.DeclarationEnricherWalkDelegate getWalkDelegate(com.google.common.base.Predicate<Field> fieldHasAnnotationPredicate)
getWalkDelegate in class AbstractAnnotatedFieldDeclarationEnricherprotected org.mule.runtime.api.meta.model.ModelProperty getModelProperty(Field field)
getModelProperty in class AbstractAnnotatedFieldDeclarationEnricherprotected com.google.common.base.Predicate<Field> getFieldHasAnnotationPredicate()
getFieldHasAnnotationPredicate in class AbstractAnnotatedFieldDeclarationEnricherprotected String getAnnotationName()
getAnnotationName in class AbstractAnnotatedFieldDeclarationEnricherprotected Class getImplementingClass()
getImplementingClass in class AbstractAnnotatedFieldDeclarationEnricherCopyright © 2003–2023 MuleSoft, Inc.. All rights reserved.