public abstract class IdempotentExtensionWalker extends ExtensionWalker
ExtensionWalker which assures that each component is visited only once, making it easy to handle the fact that some
components such as OperationModel, SourceModel, ConnectionProviderModel, etc, implement the flyweight
pattern, which means that the same instance might be present at different levels.
The use of this walker makes it unnecessary to manually control if a given component has already been seen.
| Constructor and Description |
|---|
IdempotentExtensionWalker() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onConnectionProvider(ConnectionProviderModel model)
Invoked when an
ConnectionProviderModel is found in the traversed extensionModel. |
protected void |
onConnectionProvider(HasConnectionProviderModels owner,
ConnectionProviderModel model)
Invoked when an
ConnectionProviderModel is found in the
traversed extensionModel |
protected void |
onConstruct(ConstructModel model)
Invoked when an
ConstructModel is found in the traversed extensionModel. |
protected void |
onConstruct(HasConstructModels owner,
ConstructModel model)
Invoked when an
ConstructModel is found in the
traversed extensionModel |
protected void |
onFunction(FunctionModel model)
Invoked when an
FunctionModel is found in the traversed extensionModel. |
protected void |
onFunction(HasFunctionModels owner,
FunctionModel model)
Invoked when an
FunctionModel is found in the
traversed extensionModel. |
protected void |
onOperation(HasOperationModels owner,
OperationModel model)
Invoked when an
OperationModel is found in the
traversed extensionModel. |
protected void |
onOperation(OperationModel model)
Invoked when an
OperationModel is found in the traversed extensionModel. |
protected void |
onParameter(ParameterGroupModel groupModel,
ParameterModel model)
Invoked when an
ParameterModel is found in the traversed extensionModel. |
protected void |
onParameter(ParameterizedModel owner,
ParameterGroupModel groupModel,
ParameterModel model)
Invoked when an
ParameterModel is found in the
traversed extensionModel |
protected void |
onParameterGroup(ParameterGroupModel model)
Invoked when an
ParameterGroupModel is found in the traversed extensionModel. |
protected void |
onParameterGroup(ParameterizedModel owner,
ParameterGroupModel model)
Invoked when an
ParameterGroupModel is found in the
traversed extensionModel |
protected void |
onSource(HasSourceModels owner,
SourceModel model)
Invoked when an
SourceModel is found in the
traversed extensionModel |
protected void |
onSource(SourceModel model)
Invoked when an
SourceModel is found in the traversed extensionModel. |
onConfiguration, stop, walkprotected final void onSource(HasSourceModels owner, SourceModel model)
ExtensionWalkerSourceModel is found in the
traversed extensionModelonSource in class ExtensionWalkerowner - The component that owns the sourcemodel - the SourceModelprotected void onParameterGroup(ParameterizedModel owner, ParameterGroupModel model)
ExtensionWalkerParameterGroupModel is found in the
traversed extensionModelonParameterGroup in class ExtensionWalkerowner - The component that owns the sourcemodel - the ParameterGroupModelprotected void onParameter(ParameterizedModel owner, ParameterGroupModel groupModel, ParameterModel model)
ExtensionWalkerParameterModel is found in the
traversed extensionModelonParameter in class ExtensionWalkerowner - The component that owns the parametergroupModel - the ParameterGroupModel in which the model is containedmodel - the ParameterModelprotected final void onOperation(HasOperationModels owner, OperationModel model)
ExtensionWalkerOperationModel is found in the
traversed extensionModel.
onOperation in class ExtensionWalkerowner - The component that owns the operationmodel - the OperationModelprotected final void onFunction(HasFunctionModels owner, FunctionModel model)
ExtensionWalkerFunctionModel is found in the
traversed extensionModel.
onFunction in class ExtensionWalkerowner - The component that owns the functionmodel - the FunctionModelprotected final void onConstruct(HasConstructModels owner, ConstructModel model)
ExtensionWalkerConstructModel is found in the
traversed extensionModelonConstruct in class ExtensionWalkerowner - The component that owns the sourcemodel - the ConstructModelprotected final void onConnectionProvider(HasConnectionProviderModels owner, ConnectionProviderModel model)
ExtensionWalkerConnectionProviderModel is found in the
traversed extensionModelonConnectionProvider in class ExtensionWalkerowner - The component that owns the providermodel - the ConnectionProviderModelprotected void onConnectionProvider(ConnectionProviderModel model)
ConnectionProviderModel is found in the traversed extensionModel.
This method will only be invoked once per each found instance
model - the ConnectionProviderModelprotected void onSource(SourceModel model)
SourceModel is found in the traversed extensionModel.
This method will only be invoked once per each found instance
model - the SourceModelprotected void onConstruct(ConstructModel model)
ConstructModel is found in the traversed extensionModel.
This method will only be invoked once per each found instance
model - the ConstructModelprotected void onParameter(ParameterGroupModel groupModel, ParameterModel model)
ParameterModel is found in the traversed extensionModel.
This method will only be invoked once per each found instance
groupModel - the ParameterGroupModel on which the model is containedmodel - the ParameterModelprotected void onParameterGroup(ParameterGroupModel model)
ParameterGroupModel is found in the traversed extensionModel.
This method will only be invoked once per each found instance
model - the ParameterModelprotected void onOperation(OperationModel model)
OperationModel is found in the traversed extensionModel.
This method will only be invoked once per each found instance
model - the OperationModelprotected void onFunction(FunctionModel model)
FunctionModel is found in the traversed extensionModel.
This method will only be invoked once per each found instance
model - the FunctionModelCopyright © 2017 MuleSoft, Inc.. All rights reserved.