public class NoOpDeclarationCache extends Object implements DeclarationValueProviderCache, DeclarationMetadataCache
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.ComponentMetadataTypesDescriptor> |
getComponentMetadata(org.mule.runtime.app.declaration.api.ComponentElementDeclaration<?> componentElementDeclaration,
Callable<org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.ComponentMetadataTypesDescriptor>> resolver,
boolean forceResolution)
Gets the source metadata for the given
ComponentElementDeclaration, if not present the Callable should be
called and result stored in order to resolve the metadata. |
org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer> |
getMetadataKeys(org.mule.runtime.app.declaration.api.ComponentElementDeclaration elementDeclaration,
Callable<org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer>> resolver,
boolean forceResolution)
Gets the key metadata for the given ElementDeclaration) , if not present the {@link Callable} should be called and
result stored in order to resolve the metadata.
|
org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer> |
getMetadataKeysPartialFetch(org.mule.runtime.api.meta.model.parameter.ParameterizedModel parameterizedModel,
org.mule.runtime.app.declaration.api.ComponentElementDeclaration elementDeclaration,
Callable<org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer>> resolver,
boolean forceResolution)
Gets the key metadata for the given ElementDeclaration) , if not present the {@link Callable} should be called and
result stored in order to resolve the metadata.
|
org.mule.runtime.api.value.ValueResult |
getValues(org.mule.runtime.app.declaration.api.ElementDeclaration elementDeclaration,
String parameterName,
Callable<org.mule.runtime.api.value.ValueResult> callable,
boolean forceResolution)
Gets the possible values for the given parameter belonging to the
ElementDeclaration, if not present the
Callable should be called and result stored in order to resolve the values. |
org.mule.runtime.api.value.ValueResult |
getValues(org.mule.runtime.app.declaration.api.ElementDeclaration elementDeclaration,
String parameterName,
String targetSelector,
Callable<org.mule.runtime.api.value.ValueResult> callable,
boolean forceResolution)
Gets the possible values for the given field(targetSelector) in the given parameter belonging to the
ElementDeclaration, if not present the Callable should be called and result stored in order to resolve the
values. |
static NoOpDeclarationCache |
noOpDeclarationCache() |
public static NoOpDeclarationCache noOpDeclarationCache()
public org.mule.runtime.api.value.ValueResult getValues(org.mule.runtime.app.declaration.api.ElementDeclaration elementDeclaration,
String parameterName,
Callable<org.mule.runtime.api.value.ValueResult> callable,
boolean forceResolution)
DeclarationValueProviderCacheElementDeclaration, if not present the
Callable should be called and result stored in order to resolve the values.getValues in interface DeclarationValueProviderCacheelementDeclaration - parameter container elementparameterName - name of the parameter to resolves values fromcallable - resolution logic if values not presentforceResolution - call the resolver even if there is a value stored in the cache and override it with * the new
resultValueResult with the requested informationpublic org.mule.runtime.api.value.ValueResult getValues(org.mule.runtime.app.declaration.api.ElementDeclaration elementDeclaration,
String parameterName,
String targetSelector,
Callable<org.mule.runtime.api.value.ValueResult> callable,
boolean forceResolution)
DeclarationValueProviderCacheElementDeclaration, if not present the Callable should be called and result stored in order to resolve the
values.getValues in interface DeclarationValueProviderCacheelementDeclaration - parameter container elementparameterName - name of the parameter to resolves values fromtargetSelector - the selector to locate the field within the parametercallable - resolution logic if values not presentforceResolution - call the resolver even if there is a value stored in the cache and override it with * the new
resultValueResult with the requested informationpublic org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.ComponentMetadataTypesDescriptor> getComponentMetadata(org.mule.runtime.app.declaration.api.ComponentElementDeclaration<?> componentElementDeclaration,
Callable<org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.ComponentMetadataTypesDescriptor>> resolver,
boolean forceResolution)
DeclarationMetadataCacheComponentElementDeclaration, if not present the Callable should be
called and result stored in order to resolve the metadata.getComponentMetadata in interface DeclarationMetadataCachecomponentElementDeclaration - of the component for which to get the metadataresolver - the callback that knows how to fetch the metadata on Mule Runtime.forceResolution - call the resolver even if there is a value stored in the cache and override it with the
new resultpublic org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer> getMetadataKeys(org.mule.runtime.app.declaration.api.ComponentElementDeclaration elementDeclaration,
Callable<org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer>> resolver,
boolean forceResolution)
DeclarationMetadataCachegetMetadataKeys in interface DeclarationMetadataCacheelementDeclaration - of the component for which to get the metadata keysresolver - the callback that knows how to fetch the metadata on Mule Runtime.forceResolution - call the resolver even if there is a value stored in the cache and override it with the new result.public org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer> getMetadataKeysPartialFetch(org.mule.runtime.api.meta.model.parameter.ParameterizedModel parameterizedModel,
org.mule.runtime.app.declaration.api.ComponentElementDeclaration elementDeclaration,
Callable<org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer>> resolver,
boolean forceResolution)
DeclarationMetadataCachegetMetadataKeysPartialFetch in interface DeclarationMetadataCacheparameterizedModel - the model to which the resolution of keys would be made.elementDeclaration - of the component for which to get the metadata keys.resolver - the callback that knows how to fetch the metadata on Mule Runtime.forceResolution - call the resolver even if there is a value stored in the cache and override it with the new result,
for partial fetch the upper level entries with the given partial key would be also removed from
cache.Copyright © 2024 MuleSoft, Inc.. All rights reserved.