Class OptionalDependencyWrapper
- java.lang.Object
-
- io.fabric8.kubernetes.client.utils.OptionalDependencyWrapper
-
public class OptionalDependencyWrapper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <R> R
wrapRunWithOptionalDependency(Supplier<R> supplier, String message)
Runs the providedSupplier
implementation and catches anyNoClassDefFoundError
-
-
-
Method Detail
-
wrapRunWithOptionalDependency
public static <R> R wrapRunWithOptionalDependency(Supplier<R> supplier, String message)
Runs the providedSupplier
implementation 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
-
-