Interface MetadataContext

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
  • Method Details

    • getConnection

      <C> Optional<C> getConnection() throws org.mule.runtime.api.connection.ConnectionException
      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 ClassTypeLoader for the current MetadataContext.
    • getTypeBuilder

      org.mule.metadata.api.builder.BaseTypeBuilder getTypeBuilder()
      Returns:
      the BaseTypeBuilder for the current MetadataContext.
    • getCache

      MetadataCache getCache()
      Returns:
      the MetadataCache associated with the MetadataContext.
    • 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