Class IdempotentDeclarationEnricherWalkDelegate
java.lang.Object
org.mule.runtime.extension.api.loader.WalkingDeclarationEnricher.DeclarationEnricherWalkDelegate
org.mule.runtime.extension.api.loader.IdempotentDeclarationEnricherWalkDelegate
public class IdempotentDeclarationEnricherWalkDelegate
extends WalkingDeclarationEnricher.DeclarationEnricherWalkDelegate
A
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.
- Since:
- 1.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonConnectionProvider(org.mule.runtime.api.meta.model.declaration.fluent.ConnectedDeclaration owner, org.mule.runtime.api.meta.model.declaration.fluent.ConnectionProviderDeclaration declaration) Invoked when anConnectedDeclarationis found in the traversedextensionDeclarationprotected voidonConnectionProvider(org.mule.runtime.api.meta.model.declaration.fluent.ConnectionProviderDeclaration declaration) Invoked when anConnectedDeclarationis found in the traversedextensionDeclaration.protected voidonConstruct(org.mule.runtime.api.meta.model.declaration.fluent.ConstructDeclaration declaration) Invoked when aConstructDeclarationis found in the traversedextensionDeclaration.voidonConstruct(org.mule.runtime.api.meta.model.declaration.fluent.WithConstructsDeclaration owner, org.mule.runtime.api.meta.model.declaration.fluent.ConstructDeclaration declaration) Invoked when aConstructDeclarationis found in the traversedextensionDeclaration.protected voidonFunction(org.mule.runtime.api.meta.model.declaration.fluent.FunctionDeclaration declaration) Invoked when anFunctionDeclarationis found in the traversedextensionModel.voidonFunction(org.mule.runtime.api.meta.model.declaration.fluent.WithFunctionsDeclaration owner, org.mule.runtime.api.meta.model.declaration.fluent.FunctionDeclaration model) Invoked when anFunctionDeclarationis found in the traversedextensionDeclaration.protected voidonOperation(org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclaration declaration) Invoked when anOperationDeclarationis found in the traversedextensionDeclaration.voidonOperation(org.mule.runtime.api.meta.model.declaration.fluent.WithOperationsDeclaration owner, org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclaration declaration) Invoked when anOperationDeclarationis found in the traversedextensionDeclaration.protected voidonParameter(org.mule.runtime.api.meta.model.declaration.fluent.ParameterGroupDeclaration parameterGroup, org.mule.runtime.api.meta.model.declaration.fluent.ParameterDeclaration declaration) Invoked when anParameterDeclarationis found in the traversedextensionDeclaration.voidonParameter(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 anParameterDeclarationis found in the traversedextensionDeclarationprotected voidonParameterGroup(org.mule.runtime.api.meta.model.declaration.fluent.ParameterGroupDeclaration declaration) Invoked when anParameterGroupDeclarationis found in the traversedextensionDeclarationvoidonParameterGroup(org.mule.runtime.api.meta.model.declaration.fluent.ParameterizedDeclaration owner, org.mule.runtime.api.meta.model.declaration.fluent.ParameterGroupDeclaration declaration) Invoked when anParameterGroupDeclarationis found in the traversedextensionDeclarationprotected voidonSource(org.mule.runtime.api.meta.model.declaration.fluent.SourceDeclaration declaration) Invoked when anSourceDeclarationis found in the traversedextensionDeclarationvoidonSource(org.mule.runtime.api.meta.model.declaration.fluent.WithSourcesDeclaration owner, org.mule.runtime.api.meta.model.declaration.fluent.SourceDeclaration declaration) Invoked when anSourceDeclarationis found in the traversedextensionDeclarationMethods inherited from class org.mule.runtime.extension.api.loader.WalkingDeclarationEnricher.DeclarationEnricherWalkDelegate
onConfiguration, onWalkFinished
-
Constructor Details
-
IdempotentDeclarationEnricherWalkDelegate
public IdempotentDeclarationEnricherWalkDelegate()
-
-
Method Details
-
onSource
public void onSource(org.mule.runtime.api.meta.model.declaration.fluent.WithSourcesDeclaration owner, org.mule.runtime.api.meta.model.declaration.fluent.SourceDeclaration declaration) Invoked when anSourceDeclarationis found in the traversedextensionDeclaration- Overrides:
onSourcein classWalkingDeclarationEnricher.DeclarationEnricherWalkDelegate- Parameters:
owner- The declaration that owns the sourcedeclaration- theSourceDeclaration
-
onParameterGroup
public void onParameterGroup(org.mule.runtime.api.meta.model.declaration.fluent.ParameterizedDeclaration owner, org.mule.runtime.api.meta.model.declaration.fluent.ParameterGroupDeclaration declaration) Invoked when anParameterGroupDeclarationis found in the traversedextensionDeclaration- Overrides:
onParameterGroupin classWalkingDeclarationEnricher.DeclarationEnricherWalkDelegate- Parameters:
owner- The declaration that owns the parameterdeclaration- theParameterGroupDeclaration
-
onParameter
public 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 anParameterDeclarationis found in the traversedextensionDeclaration- Overrides:
onParameterin classWalkingDeclarationEnricher.DeclarationEnricherWalkDelegate- Parameters:
owner- The declaration that owns the parameterparameterGroup- the group to which the declaration belongsdeclaration- theParameterDeclaration
-
onOperation
public void onOperation(org.mule.runtime.api.meta.model.declaration.fluent.WithOperationsDeclaration owner, org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclaration declaration) Invoked when anOperationDeclarationis found in the traversedextensionDeclaration.- Overrides:
onOperationin classWalkingDeclarationEnricher.DeclarationEnricherWalkDelegate- Parameters:
owner- The declaration that owns the operationdeclaration- theWithOperationsDeclaration
-
onFunction
public void onFunction(org.mule.runtime.api.meta.model.declaration.fluent.WithFunctionsDeclaration owner, org.mule.runtime.api.meta.model.declaration.fluent.FunctionDeclaration model) Description copied from class:WalkingDeclarationEnricher.DeclarationEnricherWalkDelegateInvoked when anFunctionDeclarationis found in the traversedextensionDeclaration.- Overrides:
onFunctionin classWalkingDeclarationEnricher.DeclarationEnricherWalkDelegate- Parameters:
owner- The declaration that owns the functionmodel- theFunctionDeclaration
-
onConstruct
public void onConstruct(org.mule.runtime.api.meta.model.declaration.fluent.WithConstructsDeclaration owner, org.mule.runtime.api.meta.model.declaration.fluent.ConstructDeclaration declaration) Description copied from class:WalkingDeclarationEnricher.DeclarationEnricherWalkDelegateInvoked when aConstructDeclarationis found in the traversedextensionDeclaration.- Overrides:
onConstructin classWalkingDeclarationEnricher.DeclarationEnricherWalkDelegate- Parameters:
owner- The declaration that owns the operationdeclaration- theWithOperationsDeclaration
-
onConnectionProvider
public void onConnectionProvider(org.mule.runtime.api.meta.model.declaration.fluent.ConnectedDeclaration owner, org.mule.runtime.api.meta.model.declaration.fluent.ConnectionProviderDeclaration declaration) Invoked when anConnectedDeclarationis found in the traversedextensionDeclaration- Overrides:
onConnectionProviderin classWalkingDeclarationEnricher.DeclarationEnricherWalkDelegate- Parameters:
owner- The declaration that owns the providerdeclaration- theConnectionProviderDeclaration
-
onConnectionProvider
protected void onConnectionProvider(org.mule.runtime.api.meta.model.declaration.fluent.ConnectionProviderDeclaration declaration) Invoked when anConnectedDeclarationis found in the traversedextensionDeclaration.This method will only be invoked once per each found instance
- Parameters:
declaration- theConnectionProviderDeclaration
-
onSource
protected void onSource(org.mule.runtime.api.meta.model.declaration.fluent.SourceDeclaration declaration) Invoked when anSourceDeclarationis found in the traversedextensionDeclarationThis method will only be invoked once per each found instance
- Parameters:
declaration- theSourceDeclaration
-
onParameterGroup
protected void onParameterGroup(org.mule.runtime.api.meta.model.declaration.fluent.ParameterGroupDeclaration declaration) Invoked when anParameterGroupDeclarationis found in the traversedextensionDeclarationThis method will only be invoked once per each found instance
- Parameters:
declaration- theSourceDeclaration
-
onParameter
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 anParameterDeclarationis found in the traversedextensionDeclaration.This method will only be invoked once per each found instance
- Parameters:
parameterGroup- theParameterGroupDeclarationin which thedeclarationis containeddeclaration- theParameterDeclaration
-
onOperation
protected void onOperation(org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclaration declaration) Invoked when anOperationDeclarationis found in the traversedextensionDeclaration.This method will only be invoked once per each found instance.
- Parameters:
declaration- theWithOperationsDeclaration
-
onConstruct
protected void onConstruct(org.mule.runtime.api.meta.model.declaration.fluent.ConstructDeclaration declaration) Invoked when aConstructDeclarationis found in the traversedextensionDeclaration.This method will only be invoked once per each found instance.
- Parameters:
declaration- theWithOperationsDeclaration
-
onFunction
protected void onFunction(org.mule.runtime.api.meta.model.declaration.fluent.FunctionDeclaration declaration) Invoked when anFunctionDeclarationis found in the traversedextensionModel.This method will only be invoked once per each found instance
- Parameters:
declaration- theFunctionDeclaration
-