Class LoadClass

java.lang.Object
io.sentry.util.LoadClass

public class LoadClass extends Object
An Adapter for making Class.forName testable
  • Constructor Details

    • LoadClass

      public LoadClass()
  • Method Details

    • loadClass

      @Nullable public @Nullable Class<?> loadClass(@NotNull @NotNull String clazz, @Nullable @Nullable ILogger logger)
      Try to load a class via reflection
      Parameters:
      clazz - the full class name
      logger - an instance of ILogger
      Returns:
      a Class<?> if it's available, or null
    • isClassAvailable

      public boolean isClassAvailable(@NotNull @NotNull String clazz, @Nullable @Nullable ILogger logger)
    • isClassAvailable

      public boolean isClassAvailable(@NotNull @NotNull String clazz, @Nullable @Nullable SentryOptions options)