public class LegacyToolingMetadataCache extends Object implements MetadataCache
| Constructor and Description |
|---|
LegacyToolingMetadataCache(org.mule.runtime.api.util.LazyValue<org.mule.runtime.config.internal.model.ApplicationModel> applicationModel,
Map<String,String> toolingArtifactProperties,
org.mule.tooling.client.api.datasense.MetadataCache delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose(org.mule.datasense.api.metadataprovider.CompatibleComponentAst componentAst)
Dispose the entries that are related to the received
CompatibleComponentAst. |
org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer> |
getMetadataKeys(org.mule.datasense.api.metadataprovider.CompatibleComponentAst componentAst,
Callable<org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer>> resolver)
Gets the key metadata for the given CompatibleComponentAst) , 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.meta.model.operation.OperationModel> |
getOperationMetadata(org.mule.datasense.api.metadataprovider.CompatibleComponentAst componentAst,
Callable<org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.meta.model.operation.OperationModel>> resolver)
Gets the operations metadata for the given
CompatibleComponentAst, 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.meta.model.source.SourceModel> |
getSourceMetadata(org.mule.datasense.api.metadataprovider.CompatibleComponentAst componentAst,
Callable<org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.meta.model.source.SourceModel>> resolver)
Gets the source metadata for the given
CompatibleComponentAst, if not present the
Callable should be called and result stored in order to resolve the metadata. |
void |
invalidateMetadataKeysFor(org.mule.datasense.api.metadataprovider.CompatibleComponentAst componentAst)
Invalidate the metadata keys that are related to the received
CompatibleComponentAst
Unlike MetadataCache.dispose(CompatibleComponentAst), if the CompatibleComponentAst corresponds to a configuration,
only the metadata key entries that are related to that configuration id will be invalidated |
public org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.meta.model.operation.OperationModel> getOperationMetadata(org.mule.datasense.api.metadataprovider.CompatibleComponentAst componentAst,
Callable<org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.meta.model.operation.OperationModel>> resolver)
MetadataCacheCompatibleComponentAst, if not present the
Callable should be called and result stored in order to resolve the metadata.getOperationMetadata in interface MetadataCachecomponentAst - of the operation for which to get the metadataresolver - the callback that knows how to fetch the metadata on Mule Runtime.public org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.meta.model.source.SourceModel> getSourceMetadata(org.mule.datasense.api.metadataprovider.CompatibleComponentAst componentAst,
Callable<org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.meta.model.source.SourceModel>> resolver)
MetadataCacheCompatibleComponentAst, if not present the
Callable should be called and result stored in order to resolve the metadata.getSourceMetadata in interface MetadataCachecomponentAst - of the operation for which to get the metadataresolver - the callback that knows how to fetch the metadata on Mule Runtime.public org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer> getMetadataKeys(org.mule.datasense.api.metadataprovider.CompatibleComponentAst componentAst,
Callable<org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer>> resolver)
MetadataCachegetMetadataKeys in interface MetadataCacheresolver - the callback that knows how to fetch the metadata on Mule Runtime.public void dispose(org.mule.datasense.api.metadataprovider.CompatibleComponentAst componentAst)
MetadataCacheCompatibleComponentAst.
If the CompatibleComponentAst corresponds to a configuration, then all metadata from all the operations that relate
to that configuration will also be disposed.dispose in interface MetadataCachepublic void invalidateMetadataKeysFor(org.mule.datasense.api.metadataprovider.CompatibleComponentAst componentAst)
MetadataCacheCompatibleComponentAst
Unlike MetadataCache.dispose(CompatibleComponentAst), if the CompatibleComponentAst corresponds to a configuration,
only the metadata key entries that are related to that configuration id will be invalidatedinvalidateMetadataKeysFor in interface MetadataCacheCopyright © 2019 MuleSoft, Inc.. All rights reserved.