Class DependencyValidate
java.lang.Object
software.amazon.awssdk.utils.DependencyValidate
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 Summary
Modifier and TypeMethodDescriptionstatic void
requireClass
(String classPath, String module, String feature) A helpful method that checks that some class is available on the class-path.
-
Method Details
-
requireClass
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
-