Class NullMetadataResolver
java.lang.Object
org.mule.runtime.extension.api.metadata.NullMetadataResolver
- All Implemented Interfaces:
org.mule.runtime.api.metadata.resolving.AttributesTypeResolver<Object>,org.mule.runtime.api.metadata.resolving.InputTypeResolver<Object>,org.mule.runtime.api.metadata.resolving.NamedTypeResolver,org.mule.runtime.api.metadata.resolving.OutputTypeResolver<Object>,org.mule.runtime.api.metadata.resolving.TypeKeysResolver
@MinMuleVersion("4.1")
public final class NullMetadataResolver
extends Object
implements org.mule.runtime.api.metadata.resolving.InputTypeResolver<Object>, org.mule.runtime.api.metadata.resolving.TypeKeysResolver, org.mule.runtime.api.metadata.resolving.OutputTypeResolver<Object>, org.mule.runtime.api.metadata.resolving.AttributesTypeResolver<Object>
Null implementation of
InputTypeResolver, AttributesTypeResolver and TypeKeysResolver, used to
represent the absence of any of them when required.- Since:
- 1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.mule.metadata.api.model.MetadataTypegetAttributesType(org.mule.runtime.api.metadata.MetadataContext context, Object key) Null implementation ofAttributesTypeResolver, used when no implementation is provided by the connector developer.org.mule.metadata.api.model.MetadataTypegetInputMetadata(org.mule.runtime.api.metadata.MetadataContext context, Object key) Null implementation ofInputTypeResolver, used when no implementation is provided by the connector developer.Set<org.mule.runtime.api.metadata.MetadataKey>getKeys(org.mule.runtime.api.metadata.MetadataContext context) Null implementation ofTypeKeysResolver, used when no implementation is provided by the connector developer.org.mule.metadata.api.model.MetadataTypegetOutputType(org.mule.runtime.api.metadata.MetadataContext context, Object key) Null implementation ofOutputTypeResolver, used when no implementation is provided by the connector developer.
-
Field Details
-
NULL_CATEGORY_NAME
- See Also:
-
NULL_RESOLVER_NAME
- See Also:
-
-
Constructor Details
-
NullMetadataResolver
public NullMetadataResolver()
-
-
Method Details
-
getResolverName
- Specified by:
getResolverNamein interfaceorg.mule.runtime.api.metadata.resolving.AttributesTypeResolver<Object>- Specified by:
getResolverNamein interfaceorg.mule.runtime.api.metadata.resolving.InputTypeResolver<Object>- Specified by:
getResolverNamein interfaceorg.mule.runtime.api.metadata.resolving.NamedTypeResolver- Specified by:
getResolverNamein interfaceorg.mule.runtime.api.metadata.resolving.OutputTypeResolver<Object>- Specified by:
getResolverNamein interfaceorg.mule.runtime.api.metadata.resolving.TypeKeysResolver
-
getCategoryName
- Specified by:
getCategoryNamein interfaceorg.mule.runtime.api.metadata.resolving.NamedTypeResolver
-
getKeys
public Set<org.mule.runtime.api.metadata.MetadataKey> getKeys(org.mule.runtime.api.metadata.MetadataContext context) throws org.mule.runtime.api.metadata.MetadataResolvingException Null implementation ofTypeKeysResolver, used when no implementation is provided by the connector developer. Represents the absence of a customTypeKeysResolver, returning an empty list ofMetadataKey.- Specified by:
getKeysin interfaceorg.mule.runtime.api.metadata.resolving.TypeKeysResolver- Parameters:
context-MetadataContextof the MetaData resolution- Returns:
Collections.emptyList()- Throws:
org.mule.runtime.api.metadata.MetadataResolvingException
-
getInputMetadata
public org.mule.metadata.api.model.MetadataType getInputMetadata(org.mule.runtime.api.metadata.MetadataContext context, Object key) throws org.mule.runtime.api.metadata.MetadataResolvingException Null implementation ofInputTypeResolver, used when no implementation is provided by the connector developer. Represents the absence of a customInputTypeResolver, returning aVoidTypeinstead of resolving a validMetadataType- Specified by:
getInputMetadatain interfaceorg.mule.runtime.api.metadata.resolving.InputTypeResolver<Object>- Parameters:
context-MetadataContextof the MetaData resolutionkey-MetadataKeyof the type which's structure has to be resolved- Returns:
- a
VoidType - Throws:
org.mule.runtime.api.metadata.MetadataResolvingException
-
getOutputType
public org.mule.metadata.api.model.MetadataType getOutputType(org.mule.runtime.api.metadata.MetadataContext context, Object key) throws org.mule.runtime.api.metadata.MetadataResolvingException Null implementation ofOutputTypeResolver, used when no implementation is provided by the connector developer. Represents the absence of a customOutputTypeResolver, returning aVoidTypeinstead of resolving a dynamicMetadataTypefor the component's output.- Specified by:
getOutputTypein interfaceorg.mule.runtime.api.metadata.resolving.OutputTypeResolver<Object>- Parameters:
context-MetadataContextof the MetaData resolutionkey-MetadataKeyof the type which's structure has to be resolved- Returns:
- a
VoidType - Throws:
org.mule.runtime.api.metadata.MetadataResolvingException
-
getAttributesType
public org.mule.metadata.api.model.MetadataType getAttributesType(org.mule.runtime.api.metadata.MetadataContext context, Object key) throws org.mule.runtime.api.metadata.MetadataResolvingException Null implementation ofAttributesTypeResolver, used when no implementation is provided by the connector developer. Represents the absence of a customAttributesTypeResolver, returning aVoidTypeinstead of resolving a dynamicMetadataTypefor the component's output attributes.- Specified by:
getAttributesTypein interfaceorg.mule.runtime.api.metadata.resolving.AttributesTypeResolver<Object>- Parameters:
context-MetadataContextof the MetaData resolutionkey-MetadataKeyof the type which's structure has to be resolved- Returns:
- a
VoidType - Throws:
org.mule.runtime.api.metadata.MetadataResolvingException
-