public final class MetadataResolverUtils extends Object
| Constructor and Description |
|---|
MetadataResolverUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
resolveWithOAuthRefresh(org.mule.runtime.api.metadata.MetadataContext metadataContext,
CheckedSupplier<T> metadataSupplier)
Gets the value provided by a
CheckedSupplier taking into account that an OAuth access token refresh may be needed. |
public static <T> T resolveWithOAuthRefresh(org.mule.runtime.api.metadata.MetadataContext metadataContext,
CheckedSupplier<T> metadataSupplier)
throws Exception
CheckedSupplier taking into account that an OAuth access token refresh may be needed.T - the type of value the supplier providermetadataContext - metadata context used by the supplier to provide a valuemetadataSupplier - supplier that provides the valueExceptionCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.