Interface MetadataContext

All Superinterfaces:
org.mule.runtime.api.lifecycle.Disposable

@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 Type
    Method
    Description
     
    <C> Optional<C>
    Retrieves the connection for the related a component and configuration
    org.mule.metadata.api.builder.BaseTypeBuilder
     
    org.mule.metadata.api.ClassTypeLoader
     

    Methods inherited from interface org.mule.runtime.api.lifecycle.Disposable

    dispose
  • 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.