@NoImplement
public interface MetadataCacheManager
MetadataCaches used for dynamic metadata resolution, being the only
way to obtain an instance of MetadataCache.| Modifier and Type | Field and Description |
|---|---|
static String |
METADATA_CACHE_MANAGER_KEY
Key under which the
MetadataCacheManager can be found in the org.mule.runtime.api.artifact.Registry |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose(String id)
If the given
id references exactly one MetadataCache then that cache will be disposed. |
org.mule.runtime.api.metadata.MetadataCache |
getOrCreateCache(String id)
Returns the
MetadataCache with the given id if one has already been defined. |
void |
updateCache(String id,
org.mule.runtime.api.metadata.MetadataCache cache)
Replaces the old binding of the given
id with the new cache element. |
static final String METADATA_CACHE_MANAGER_KEY
MetadataCacheManager can be found in the org.mule.runtime.api.artifact.Registryorg.mule.runtime.api.metadata.MetadataCache getOrCreateCache(String id)
MetadataCache with the given id if one has already been defined. Otherwise, a new instance of
MetadataCache will be created, bound to the given id and then returned.id - the cache identifier hash stringMetadataCache bound to the given id, or a new cache of none existed.void updateCache(String id, org.mule.runtime.api.metadata.MetadataCache cache)
id with the new cache element.id - the cache identifier hash stringcache - the new MetadataCache value bound to the given idvoid dispose(String id)
id references exactly one MetadataCache then that cache will be disposed. Otherwise, all the
caches that have an id starting with the given value will be disposed, based on the pre-condition that id's are
formed in a hierarchical way.id - the given identifier hash string of the level at which the disposal should be performedCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.