public final class MetadataMediator<T extends org.mule.runtime.api.meta.model.ComponentModel> extends Object
MetadataResolverFactory, TypeKeysResolver,
InputTypeResolver and OutputTypeResolver, and the descriptors that represent their results:
ComponentMetadataDescriptor, OutputMetadataDescriptor and TypeMetadataDescriptor| Constructor and Description |
|---|
MetadataMediator(T componentModel) |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.ComponentMetadataDescriptor<T>> |
getMetadata(org.mule.runtime.api.metadata.MetadataContext context,
org.mule.runtime.api.metadata.MetadataKey key)
Resolves the
ComponentMetadataDescriptor for the associated context using the specified
key |
org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.ComponentMetadataDescriptor<T>> |
getMetadata(org.mule.runtime.api.metadata.MetadataContext context,
ParameterValueResolver metadataKeyResolver,
ReflectionCache reflectionCache)
Resolves the
ComponentMetadataDescriptor for the associated context using the component
ParameterValueResolver to resolve an object with the value of the MetadataKey. |
org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer> |
getMetadataKeys(org.mule.runtime.api.metadata.MetadataContext context,
ParameterValueResolver metadataKeyResolver,
ReflectionCache reflectionCache) |
org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer> |
getMetadataKeys(org.mule.runtime.api.metadata.MetadataContext context,
ReflectionCache reflectionCache)
Resolves the list of types available for the Content or Output of the associated
MetadataKeyProvider Component,
representing them as a list of MetadataKey. |
protected final T extends org.mule.runtime.api.meta.model.ComponentModel component
public MetadataMediator(T componentModel)
public org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer> getMetadataKeys(org.mule.runtime.api.metadata.MetadataContext context,
ReflectionCache reflectionCache)
MetadataKeyProvider Component,
representing them as a list of MetadataKey.
If no MetadataKeyId is present in the component's input parameters, then a NullMetadataKey is returned.
Otherwise, the TypeKeysResolver.getKeys(org.mule.runtime.api.metadata.MetadataContext) associated with the current Component will be invoked to obtain
the keys
context - current MetadataContext that will be used by the TypeKeysResolverMetadataResult if the keys are obtained without errors Failure MetadataResult when no
Dynamic keys are a available or the retrieval fails for any reasonpublic org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.MetadataKeysContainer> getMetadataKeys(org.mule.runtime.api.metadata.MetadataContext context,
ParameterValueResolver metadataKeyResolver,
ReflectionCache reflectionCache)
public org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.ComponentMetadataDescriptor<T>> getMetadata(org.mule.runtime.api.metadata.MetadataContext context, org.mule.runtime.api.metadata.MetadataKey key)
ComponentMetadataDescriptor for the associated context using the specified
keycontext - current MetadataContext that will be used by the metadata resolvers.key - MetadataKey of the type which's structure has to be resolved, used both for input and output typesMetadataResult if the MetadataTypes are resolved without errors Failure MetadataResult
when the Metadata retrieval of any element fails for any reasonpublic org.mule.runtime.api.metadata.resolving.MetadataResult<org.mule.runtime.api.metadata.descriptor.ComponentMetadataDescriptor<T>> getMetadata(org.mule.runtime.api.metadata.MetadataContext context, ParameterValueResolver metadataKeyResolver, ReflectionCache reflectionCache)
ComponentMetadataDescriptor for the associated context using the component
ParameterValueResolver to resolve an object with the value of the MetadataKey.context - current MetadataContext that will be used by the metadata resolvers.MetadataResult if the MetadataTypes are resolved without errors Failure MetadataResult
when the Metadata retrieval of any element fails for any reasonCopyright © 2003–2020 MuleSoft, Inc.. All rights reserved.