public interface MetadataManager
MetadataAware Component in the application,
using it's ComponentId| Modifier and Type | Method and Description |
|---|---|
void |
disposeCache(String id)
Removes the
MetadataCache with the specified id. |
MetadataResult<ComponentMetadataDescriptor> |
getMetadata(ComponentId componentId)
Resolves the
ComponentMetadataDescriptor for the MetadataAware Component
identified by the ComponentId using only the static types of its parameters, attributes and output. |
MetadataResult<ComponentMetadataDescriptor> |
getMetadata(ComponentId componentId,
MetadataKey key)
Resolves the
ComponentMetadataDescriptor for the MetadataAware Component
identified by the ComponentId using both static and dynamic resolving of
the parameters, attributes and output types. |
MetadataResult<Set<MetadataKey>> |
getMetadataKeys(ComponentId componentId)
Returns the list of types that can be described by the
MetadataKeysResolver
associated to the MetadataAware Component identified by the ComponentId. |
MetadataResult<Set<MetadataKey>> getMetadataKeys(ComponentId componentId)
MetadataKeysResolver
associated to the MetadataAware Component identified by the ComponentId.componentId - the id of the MetadataAware component to query for its available keysMetadataResult if the keys are successfully resolved
Failure MetadataResult if there is an error while resolving the keysMetadataResult<ComponentMetadataDescriptor> getMetadata(ComponentId componentId)
ComponentMetadataDescriptor for the MetadataAware Component
identified by the ComponentId using only the static types of its parameters, attributes and output.componentId - the id of the MetadataAware component to query for its available keysComponentMetadataDescriptor with the static Metadata representation
of the Component.
Successful MetadataResult if the Metadata is successfully retrieved
Failure MetadataResult when the Metadata retrieval of any element fails for any reasonMetadataResult<ComponentMetadataDescriptor> getMetadata(ComponentId componentId, MetadataKey key)
ComponentMetadataDescriptor for the MetadataAware Component
identified by the ComponentId using both static and dynamic resolving of
the parameters, attributes and output types.
If the component has a MetadataContentResolver or MetadataOutputResolver associated
that can be used to resolve the dynamic MetadataType for the Content or Output,
then the ComponentMetadataDescriptor will contain those dynamic types instead
of the static types declaration.
When neither Content nor Output have dynamic types, then invoking this method is the
same as invoking this#getMetadata
componentId - the id of the MetadataAware component to query for its available keyskey - MetadataKey of the type which's structure has to be resolved, used both for input and output typesMetadataResult of ComponentMetadataDescriptor type with Successful MetadataResult
if the Metadata is successfully retrieved and a Failed MetadataResult when the Metadata retrieval of any
element fails for any reasonvoid disposeCache(String id)
MetadataCache with the specified id.id - the id of the cache to be removedCopyright © 2016 MuleSoft, Inc.. All rights reserved.