Class PropertiesProviderFactory


  • @Internal
    public final class PropertiesProviderFactory
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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
      • Methods inherited from class java.lang.Object

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

      • PropertiesProviderFactory

        public PropertiesProviderFactory()
    • Method Detail

      • 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