public class DslElementBasedMetadataCacheIdGenerator extends Object implements MetadataCacheIdGenerator<DslElementModel<?>>
DslElementModel based implementation of a MetadataCacheIdGenerator| Constructor and Description |
|---|
DslElementBasedMetadataCacheIdGenerator(ComponentLocator<DslElementModel<?>> locator) |
| Modifier and Type | Method and Description |
|---|---|
Optional<MetadataCacheId> |
getIdForComponentAttributesMetadata(DslElementModel<?> component)
Calculates the
MetadataCacheId required to identify the MetadataType associated to the attributes of the given
component. |
Optional<MetadataCacheId> |
getIdForComponentInputMetadata(DslElementModel<?> component,
String parameterName)
Calculates the
MetadataCacheId required to identify the MetadataType associated to the parameter named
parameterName of the given component. |
Optional<MetadataCacheId> |
getIdForComponentMetadata(DslElementModel<?> elementModel)
Calculates the
MetadataCacheId required to identify the MetadataTypes associated to the given component. |
Optional<MetadataCacheId> |
getIdForComponentOutputMetadata(DslElementModel<?> component)
Calculates the
MetadataCacheId required to identify the MetadataType associated to the output of the given
component. |
Optional<MetadataCacheId> |
getIdForGlobalMetadata(DslElementModel<?> elementModel)
Calculates the
MetadataCacheId required to identify all the Metadata associated to the given component, and
its siblings, based on the referenced global element configuration. |
Optional<MetadataCacheId> |
getIdForMetadataKeys(DslElementModel<?> elementModel)
Calculates the
MetadataCacheId required to identify the MetadataKeys associated
to the given component. |
public DslElementBasedMetadataCacheIdGenerator(ComponentLocator<DslElementModel<?>> locator)
public Optional<MetadataCacheId> getIdForComponentOutputMetadata(DslElementModel<?> component)
MetadataCacheId required to identify the MetadataType associated to the output of the given
component. This method will take into account the values of the configured
MetadataKey to provide an unique identifier of the component output type
definition.getIdForComponentOutputMetadata in interface MetadataCacheIdGenerator<DslElementModel<?>>component - the configured componentMetadataCacheId that identifies the component output type with all its current configuration or
Optional.empty() if no valid identifier can be created.public Optional<MetadataCacheId> getIdForComponentAttributesMetadata(DslElementModel<?> component)
MetadataCacheId required to identify the MetadataType associated to the attributes of the given
component. This method will take into account the values of the configured
MetadataKey to provide an unique identifier of the component attributes type
definition.getIdForComponentAttributesMetadata in interface MetadataCacheIdGenerator<DslElementModel<?>>component - the configured componentMetadataCacheId that identifies the component attributes type with all its current configuration or
Optional.empty() if no valid identifier can be created.public Optional<MetadataCacheId> getIdForComponentInputMetadata(DslElementModel<?> component, String parameterName)
MetadataCacheId required to identify the MetadataType associated to the parameter named
parameterName of the given component. This method will take into account the values of the configured
MetadataKey to provide an unique identifier of the component attributes type
definition.getIdForComponentInputMetadata in interface MetadataCacheIdGenerator<DslElementModel<?>>component - the configured componentparameterName - the name of the parameterMetadataCacheId that identifies the component's parameter type with all its current configuration or
Optional.empty() if no valid identifier can be created.public Optional<MetadataCacheId> getIdForComponentMetadata(DslElementModel<?> elementModel)
MetadataCacheId required to identify the MetadataTypes associated to the given component. This
method will take into account the values of the configured MetadataKey to provide an
unique identifier of the component's type definitions.getIdForComponentMetadata in interface MetadataCacheIdGenerator<DslElementModel<?>>elementModel - the configured componentMetadataCacheId that identifies the component Types with all its current configuration or
Optional.empty() if no valid identifier can be created for the component.public Optional<MetadataCacheId> getIdForMetadataKeys(DslElementModel<?> elementModel)
MetadataCacheId required to identify the MetadataKeys associated
to the given component. This method will ignore the values of the configured MetadataKeys as long as they don't
affect the resolution of nested keys.getIdForMetadataKeys in interface MetadataCacheIdGenerator<DslElementModel<?>>elementModel - the configured componentMetadataCacheId that identifies the MetadataKeys associated to the component with its current
configuration, or Optional.empty() if no valid identifier can be created for the component.public Optional<MetadataCacheId> getIdForGlobalMetadata(DslElementModel<?> elementModel)
MetadataCacheIdGeneratorMetadataCacheId required to identify all the Metadata associated to the given component, and
its siblings, based on the referenced global element configuration. This method will ignore the values of the configured
MetadataKeys as long as they don't affect the resolution of nested keys.getIdForGlobalMetadata in interface MetadataCacheIdGenerator<DslElementModel<?>>elementModel - the configured componentMetadataCacheId that identifies the global Metadata associated to the component with its current
configuration, or Optional.empty() if no valid identifier can be created for the component.Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.