Class DependencyValidate

java.lang.Object
software.amazon.awssdk.utils.DependencyValidate

public final class DependencyValidate extends Object
Utilities for loading of classes and objects which have optional dependencies, and therefore need to be safely checked at runtime in order to use.
  • Method Details

    • requireClass

      public static void requireClass(String classPath, String module, String feature)
      A helpful method that checks that some class is available on the class-path. If it fails to load, it will throw an exception based on why it failed to load. This should be used in cases where certain dependencies are optional, but the dependency is used at compile-time for strong typing