Class TransactionalDeclarationEnricher
java.lang.Object
org.mule.runtime.extension.internal.loader.enricher.TransactionalDeclarationEnricher
- All Implemented Interfaces:
DeclarationEnricher,WalkingDeclarationEnricher
public final class TransactionalDeclarationEnricher
extends Object
implements WalkingDeclarationEnricher
DeclarationEnricher which enrich transactional component models adding required transactional
parameters to the correspondent model.
If the given ComponentModel already contains the parameter, this one will be enriched to ensure a cross components
transactional parameters UX.
- Since:
- 1.0
-
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
-
TransactionalDeclarationEnricher
public TransactionalDeclarationEnricher()
-
-
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
-