- 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
Methods 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.
-