Class ClusterSupportEnricher
java.lang.Object
org.mule.runtime.extension.internal.loader.enricher.ClusterSupportEnricher
- All Implemented Interfaces:
DeclarationEnricher,WalkingDeclarationEnricher
Adds a #
ExtensionConstants.PRIMARY_NODE_ONLY_PARAMETER_NAME parameter on all sources for which
SourceModel.runsOnPrimaryNodeOnly() is false- Since:
- 1.1
-
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
-
ClusterSupportEnricher
public ClusterSupportEnricher()
-
-
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
-