Class OptionalDependencyWrapper
java.lang.Object
io.fabric8.kubernetes.client.utils.OptionalDependencyWrapper
public class OptionalDependencyWrapper extends Object
-
Method Summary
Modifier and Type Method Description static <R> RwrapRunWithOptionalDependency(Supplier<R> supplier, String message)Runs the providedSupplierimplementation and catches anyNoClassDefFoundError
-
Method Details
-
wrapRunWithOptionalDependency
Runs the providedSupplierimplementation and catches anyNoClassDefFoundError- Type Parameters:
R- type of supplier- Parameters:
supplier- implementation to safely runmessage- to display for caught exceptions (e.g. "Base64InputStream class is provided by commons-codec"- Returns:
- run object
-