Class NamedObjectDeclarationEnricher
java.lang.Object
org.mule.runtime.extension.internal.loader.enricher.NamedObjectDeclarationEnricher
- All Implemented Interfaces:
DeclarationEnricher,WalkingDeclarationEnricher
Enriches constructs models with the synthetic "name" parameter.
This name parameter is the Component ID of the construct meaning that the value associated to it can be used to reference the construct in a mule application uniquely across all the instances of the same.
- Since:
- 1.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mule.runtime.extension.api.loader.WalkingDeclarationEnricher
WalkingDeclarationEnricher.DeclarationEnricherWalkDelegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSpecifies aphasefor theDeclarationEnricherto be executed.getWalkDelegate(ExtensionLoadingContext extensionLoadingContext) Optionally returns aWalkingDeclarationEnricher.DeclarationEnricherWalkDelegatethat contains the enrichment logic.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mule.runtime.extension.api.loader.WalkingDeclarationEnricher
enrich
-
Constructor Details
-
NamedObjectDeclarationEnricher
public NamedObjectDeclarationEnricher()
-
-
Method Details
-
getExecutionPhase
Description copied from interface:DeclarationEnricherSpecifies aphasefor theDeclarationEnricherto be executed.- Specified by:
getExecutionPhasein interfaceDeclarationEnricher- Returns:
- the
phasein which theDeclarationEnricheris going to be executed
-
getWalkDelegate
public Optional<WalkingDeclarationEnricher.DeclarationEnricherWalkDelegate> getWalkDelegate(ExtensionLoadingContext extensionLoadingContext) Description copied from interface:WalkingDeclarationEnricherOptionally returns aWalkingDeclarationEnricher.DeclarationEnricherWalkDelegatethat contains the enrichment logic.If
Optional.empty()is returned, it means that this enricher does not apply to the given declaration and it should be skipped- Specified by:
getWalkDelegatein interfaceWalkingDeclarationEnricher- Parameters:
extensionLoadingContext- aExtensionLoadingContext- Returns:
- an optional delegate
-