public class IdempotentDeclarationEnricherWalkDelegate extends WalkingDeclarationEnricher.DeclarationEnricherWalkDelegate
WalkingDeclarationEnricher.DeclarationEnricherWalkDelegate which assures that each component is visited only once, making it easy to handle the
fact that some components such as OperationDeclaration, SourceDeclaration,
ConnectionProviderDeclaration, etc, implement the flyweight pattern, which means that the same instance might be
present at different levels. This is the delegate equivalent of IdempotentDeclarationWalker and should be used whenever
a traditional walker would use it.
The use of this delegate makes it unnecessary to manually control if a given component has already been seen.
| Constructor and Description |
|---|
IdempotentDeclarationEnricherWalkDelegate() |
| Modifier and Type | Method and Description |
|---|---|
void |
onConnectionProvider(org.mule.runtime.api.meta.model.declaration.fluent.ConnectedDeclaration owner,
org.mule.runtime.api.meta.model.declaration.fluent.ConnectionProviderDeclaration declaration)
Invoked when an
ConnectedDeclaration is found in the traversed extensionDeclaration |
protected void |
onConnectionProvider(org.mule.runtime.api.meta.model.declaration.fluent.ConnectionProviderDeclaration declaration)
Invoked when an
ConnectedDeclaration is found in the traversed extensionDeclaration. |
protected void |
onConstruct(org.mule.runtime.api.meta.model.declaration.fluent.ConstructDeclaration declaration)
Invoked when a
ConstructDeclaration is found in the traversed extensionDeclaration. |
void |
onConstruct(org.mule.runtime.api.meta.model.declaration.fluent.WithConstructsDeclaration owner,
org.mule.runtime.api.meta.model.declaration.fluent.ConstructDeclaration declaration)
Invoked when a
ConstructDeclaration is found in the traversed extensionDeclaration. |
protected void |
onFunction(org.mule.runtime.api.meta.model.declaration.fluent.FunctionDeclaration declaration)
Invoked when an
FunctionDeclaration is found in the traversed extensionModel. |
void |
onFunction(org.mule.runtime.api.meta.model.declaration.fluent.WithFunctionsDeclaration owner,
org.mule.runtime.api.meta.model.declaration.fluent.FunctionDeclaration model)
Invoked when an
FunctionDeclaration is found in the traversed extensionDeclaration. |
protected void |
onOperation(org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclaration declaration)
Invoked when an
OperationDeclaration is found in the traversed extensionDeclaration. |
void |
onOperation(org.mule.runtime.api.meta.model.declaration.fluent.WithOperationsDeclaration owner,
org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclaration declaration)
Invoked when an
OperationDeclaration is found in the traversed extensionDeclaration. |
protected void |
onParameter(org.mule.runtime.api.meta.model.declaration.fluent.ParameterGroupDeclaration parameterGroup,
org.mule.runtime.api.meta.model.declaration.fluent.ParameterDeclaration declaration)
Invoked when an
ParameterDeclaration is found in the traversed extensionDeclaration. |
void |
onParameter(org.mule.runtime.api.meta.model.declaration.fluent.ParameterizedDeclaration owner,
org.mule.runtime.api.meta.model.declaration.fluent.ParameterGroupDeclaration parameterGroup,
org.mule.runtime.api.meta.model.declaration.fluent.ParameterDeclaration declaration)
Invoked when an
ParameterDeclaration is found in the traversed extensionDeclaration |
protected void |
onParameterGroup(org.mule.runtime.api.meta.model.declaration.fluent.ParameterGroupDeclaration declaration)
Invoked when an
ParameterGroupDeclaration is found in the traversed extensionDeclaration |
void |
onParameterGroup(org.mule.runtime.api.meta.model.declaration.fluent.ParameterizedDeclaration owner,
org.mule.runtime.api.meta.model.declaration.fluent.ParameterGroupDeclaration declaration)
Invoked when an
ParameterGroupDeclaration is found in the traversed extensionDeclaration |
protected void |
onSource(org.mule.runtime.api.meta.model.declaration.fluent.SourceDeclaration declaration)
Invoked when an
SourceDeclaration is found in the traversed extensionDeclaration |
void |
onSource(org.mule.runtime.api.meta.model.declaration.fluent.WithSourcesDeclaration owner,
org.mule.runtime.api.meta.model.declaration.fluent.SourceDeclaration declaration)
Invoked when an
SourceDeclaration is found in the traversed extensionDeclaration |
onConfiguration, onWalkFinishedpublic IdempotentDeclarationEnricherWalkDelegate()
public void onSource(org.mule.runtime.api.meta.model.declaration.fluent.WithSourcesDeclaration owner,
org.mule.runtime.api.meta.model.declaration.fluent.SourceDeclaration declaration)
SourceDeclaration is found in the traversed extensionDeclarationonSource in class WalkingDeclarationEnricher.DeclarationEnricherWalkDelegateowner - The declaration that owns the sourcedeclaration - the SourceDeclarationpublic void onParameterGroup(org.mule.runtime.api.meta.model.declaration.fluent.ParameterizedDeclaration owner,
org.mule.runtime.api.meta.model.declaration.fluent.ParameterGroupDeclaration declaration)
ParameterGroupDeclaration is found in the traversed extensionDeclarationonParameterGroup in class WalkingDeclarationEnricher.DeclarationEnricherWalkDelegateowner - The declaration that owns the parameterdeclaration - the ParameterGroupDeclarationpublic void onParameter(org.mule.runtime.api.meta.model.declaration.fluent.ParameterizedDeclaration owner,
org.mule.runtime.api.meta.model.declaration.fluent.ParameterGroupDeclaration parameterGroup,
org.mule.runtime.api.meta.model.declaration.fluent.ParameterDeclaration declaration)
ParameterDeclaration is found in the traversed extensionDeclarationonParameter in class WalkingDeclarationEnricher.DeclarationEnricherWalkDelegateowner - The declaration that owns the parameterparameterGroup - the group to which the declaration belongsdeclaration - the ParameterDeclarationpublic void onOperation(org.mule.runtime.api.meta.model.declaration.fluent.WithOperationsDeclaration owner,
org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclaration declaration)
OperationDeclaration is found in the traversed extensionDeclaration.
onOperation in class WalkingDeclarationEnricher.DeclarationEnricherWalkDelegateowner - The declaration that owns the operationdeclaration - the WithOperationsDeclarationpublic void onFunction(org.mule.runtime.api.meta.model.declaration.fluent.WithFunctionsDeclaration owner,
org.mule.runtime.api.meta.model.declaration.fluent.FunctionDeclaration model)
WalkingDeclarationEnricher.DeclarationEnricherWalkDelegateFunctionDeclaration is found in the traversed extensionDeclaration.
onFunction in class WalkingDeclarationEnricher.DeclarationEnricherWalkDelegateowner - The declaration that owns the functionmodel - the FunctionDeclarationpublic void onConstruct(org.mule.runtime.api.meta.model.declaration.fluent.WithConstructsDeclaration owner,
org.mule.runtime.api.meta.model.declaration.fluent.ConstructDeclaration declaration)
WalkingDeclarationEnricher.DeclarationEnricherWalkDelegateConstructDeclaration is found in the traversed extensionDeclaration.
onConstruct in class WalkingDeclarationEnricher.DeclarationEnricherWalkDelegateowner - The declaration that owns the operationdeclaration - the WithOperationsDeclarationpublic void onConnectionProvider(org.mule.runtime.api.meta.model.declaration.fluent.ConnectedDeclaration owner,
org.mule.runtime.api.meta.model.declaration.fluent.ConnectionProviderDeclaration declaration)
ConnectedDeclaration is found in the traversed extensionDeclarationonConnectionProvider in class WalkingDeclarationEnricher.DeclarationEnricherWalkDelegateowner - The declaration that owns the providerdeclaration - the ConnectionProviderDeclarationprotected void onConnectionProvider(org.mule.runtime.api.meta.model.declaration.fluent.ConnectionProviderDeclaration declaration)
ConnectedDeclaration is found in the traversed extensionDeclaration.
This method will only be invoked once per each found instance
declaration - the ConnectionProviderDeclarationprotected void onSource(org.mule.runtime.api.meta.model.declaration.fluent.SourceDeclaration declaration)
SourceDeclaration is found in the traversed extensionDeclaration
This method will only be invoked once per each found instance
declaration - the SourceDeclarationprotected void onParameterGroup(org.mule.runtime.api.meta.model.declaration.fluent.ParameterGroupDeclaration declaration)
ParameterGroupDeclaration is found in the traversed extensionDeclaration
This method will only be invoked once per each found instance
declaration - the SourceDeclarationprotected void onParameter(org.mule.runtime.api.meta.model.declaration.fluent.ParameterGroupDeclaration parameterGroup,
org.mule.runtime.api.meta.model.declaration.fluent.ParameterDeclaration declaration)
ParameterDeclaration is found in the traversed extensionDeclaration.
This method will only be invoked once per each found instance
parameterGroup - the ParameterGroupDeclaration in which the declaration is containeddeclaration - the ParameterDeclarationprotected void onOperation(org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclaration declaration)
OperationDeclaration is found in the traversed extensionDeclaration.
This method will only be invoked once per each found instance.
declaration - the WithOperationsDeclarationprotected void onConstruct(org.mule.runtime.api.meta.model.declaration.fluent.ConstructDeclaration declaration)
ConstructDeclaration is found in the traversed extensionDeclaration.
This method will only be invoked once per each found instance.
declaration - the WithOperationsDeclarationprotected void onFunction(org.mule.runtime.api.meta.model.declaration.fluent.FunctionDeclaration declaration)
FunctionDeclaration is found in the traversed extensionModel.
This method will only be invoked once per each found instance
declaration - the FunctionDeclarationCopyright © 2023 MuleSoft, Inc.. All rights reserved.