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 |
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 |
onRouter(HasOperationModels owner,
RouterModel model)
Invoked when a
RouterModel is found in the
traversed extensionModel. |
protected void |
onRouter(RouterModel model)
Invoked when a
RouterModel is found in the traversed extensionModel. |
protected void |
onScope(HasOperationModels owner,
ScopeModel model)
Invoked when a
ScopeModel is found in the
traversed extensionModel. |
protected void |
onScope(ScopeModel model)
Invoked when a
ScopeModel 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.
This method is also invoked when a ScopeModel or a
RouterModel are found, if and only if the
ExtensionWalker.onScope(HasOperationModels, ScopeModel)
or ExtensionWalker.onRouter(HasOperationModels, RouterModel)
methods were not overridden respectively.
onOperation in class ExtensionWalkerowner - The component that owns the operationmodel - the OperationModelprotected void onRouter(HasOperationModels owner, RouterModel model)
ExtensionWalkerRouterModel is found in the
traversed extensionModel.
By default, this method simply delegates on ExtensionWalker.onOperation(HasOperationModels, OperationModel)
onRouter in class ExtensionWalkerowner - The component that owns the operationmodel - the OperationModelprotected void onScope(HasOperationModels owner, ScopeModel model)
ExtensionWalkerScopeModel is found in the
traversed extensionModel.
By default, this method simply delegates on ExtensionWalker.onOperation(HasOperationModels, OperationModel)
onScope in class ExtensionWalkerowner - The component that owns the operationmodel - the OperationModelprotected 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 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 onRouter(RouterModel model)
RouterModel is found in the traversed extensionModel.
This method will only be invoked once per each found instance.
By default this method simply delegates into onOperation(OperationModel)
model - the OperationModelprotected void onScope(ScopeModel model)
ScopeModel is found in the traversed extensionModel.
This method will only be invoked once per each found instance.
By default this method simply delegates into onOperation(OperationModel)
model - the OperationModelCopyright © 2017 MuleSoft, Inc.. All rights reserved.