- All Superinterfaces:
org.mule.runtime.api.lifecycle.Disposable
- All Known Subinterfaces:
ChainInputMetadataContext
@NoImplement
@MinMuleVersion("4.5.0")
public interface MetadataContext
extends org.mule.runtime.api.lifecycle.Disposable
Metadata resolving context, provides access to the Config and Connection used during metadata fetch invocation.
- Since:
- 1.0
-
Field Summary
Fields inherited from interface org.mule.runtime.api.lifecycle.Disposable
PHASE_NAME -
Method Summary
Modifier and TypeMethodDescriptiongetCache()<C> Optional<C>Retrieves the connection for the related a component and configurationdefault Optional<RouterOutputMetadataContext>NOTE: Experimental feature.default Optional<ScopeOutputMetadataContext>NOTE: Experimental feature.org.mule.metadata.api.builder.BaseTypeBuilderorg.mule.metadata.api.ClassTypeLoaderMethods inherited from interface org.mule.runtime.api.lifecycle.Disposable
dispose
-
Method Details
-
getConnection
Retrieves the connection for the related a component and configuration- Type Parameters:
C- Connection type- Returns:
- Optional connection instance of type for the component.
- Throws:
org.mule.runtime.api.connection.ConnectionException- when not valid connection is found for the related component and configuration
-
getTypeLoader
org.mule.metadata.api.ClassTypeLoader getTypeLoader()- Returns:
- the
ClassTypeLoaderfor the currentMetadataContext.
-
getTypeBuilder
org.mule.metadata.api.builder.BaseTypeBuilder getTypeBuilder()- Returns:
- the
BaseTypeBuilderfor the currentMetadataContext.
-
getCache
MetadataCache getCache()- Returns:
- the
MetadataCacheassociated with theMetadataContext.
-
getScopeOutputMetadataContext
@Experimental @MinMuleVersion("4.7.0") @DoNotEnforceMinMuleVersion default Optional<ScopeOutputMetadataContext> getScopeOutputMetadataContext()NOTE: Experimental feature. Backwards compatibility is not guaranteed.- Returns:
- For scope components, describes the inner chain's input and output types.
- Since:
- 0.9.0
-
getRouterOutputMetadataContext
@Experimental @MinMuleVersion("4.7.0") @DoNotEnforceMinMuleVersion default Optional<RouterOutputMetadataContext> getRouterOutputMetadataContext()NOTE: Experimental feature. Backwards compatibility is not guaranteed.- Returns:
- For router components, describes the inner routes input and output types.
- Since:
- 0.9.0
-