Class PropertiesProviderFactory

java.lang.Object
io.sentry.config.PropertiesProviderFactory

@Internal public final class PropertiesProviderFactory extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull PropertiesProvider
    Creates a composite properties provider enabling properties resolution from following locations in order: system properties environment variables sentry.properties file which location is resolved from the system property sentry.properties.file sentry.properties file which location is resolved from the environment variable SENTRY_PROPERTIES_FILE sentry.properties located in the root of the classpath sentry.properties located in the application's current working directory

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PropertiesProviderFactory

      public PropertiesProviderFactory()
  • Method Details

    • create

      @NotNull public static @NotNull PropertiesProvider create()
      Creates a composite properties provider enabling properties resolution from following locations in order:
      • system properties
      • environment variables
      • sentry.properties file which location is resolved from the system property sentry.properties.file
      • sentry.properties file which location is resolved from the environment variable SENTRY_PROPERTIES_FILE
      • sentry.properties located in the root of the classpath
      • sentry.properties located in the application's current working directory
      Returns:
      the properties provider