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. |
void |
onConnectionProvider(HasConnectionProviderModels owner,
ConnectionProviderModel model)
Invoked when an
ConnectionProviderModel is found in the
traversed extensionModel |
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. |
void |
onParameter(ParameterizedModel owner,
ParameterModel model)
Invoked when an
ParameterModel is found in the
traversed extensionModel |
protected void |
onParameter(ParameterModel model)
Invoked when an
ParameterModel is found in the traversed extensionModel. |
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, walkpublic final void onSource(HasSourceModels owner, SourceModel model)
ExtensionWalkerSourceModel is found in the
traversed extensionModelonSource in class ExtensionWalkerowner - The component that owns the sourcemodel - the SourceModelpublic final void onParameter(ParameterizedModel owner, ParameterModel model)
ExtensionWalkerParameterModel is found in the
traversed extensionModelonParameter in class ExtensionWalkerowner - The component that owns the parametermodel - the ParameterModelpublic final void onOperation(HasOperationModels owner, OperationModel model)
ExtensionWalkerOperationModel is found in the
traversed extensionModelonOperation in class ExtensionWalkerowner - The component that owns the operationmodel - the OperationModelpublic 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(ParameterModel model)
ParameterModel 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 OperationModelCopyright © 2016 MuleSoft, Inc.. All rights reserved.