public class DefaultDeclarationMetadataCache extends Object implements DeclarationMetadataCache
| Constructor and Description |
|---|
DefaultDeclarationMetadataCache(ToolingCacheIdGenerator<org.mule.runtime.app.declaration.api.ElementDeclaration> cacheIdGenerator,
Map<String,org.mule.metadata.api.model.MetadataType> typesStorage,
Map<String,org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer>> keysStorage,
ExtensionModelProvider extensionModelProvider) |
| 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.
|
public DefaultDeclarationMetadataCache(ToolingCacheIdGenerator<org.mule.runtime.app.declaration.api.ElementDeclaration> cacheIdGenerator, Map<String,org.mule.metadata.api.model.MetadataType> typesStorage, Map<String,org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer>> keysStorage, ExtensionModelProvider extensionModelProvider)
public 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.