Class BLCSystemProperty

java.lang.Object
org.broadleafcommerce.common.util.BLCSystemProperty
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Deprecated @Service("blBLCSystemProperty") public class BLCSystemProperty extends Object implements org.springframework.context.ApplicationContextAware
Deprecated.
this class should not be used to statically obtain referenes to properties. Instead, you should either inject an instead of the SystemPropertiesService directly _or_ inject an Environment to get properties that way, since SystemPropertiesPropertySourceRegistrar adds a SystemPropertiesService PropertySource
Convenience class to faciliate getting system properties

Note that this class is scanned as a bean to pick up the applicationContext, but the methods this class provides should be invoked statically.

Author:
Andre Azzolini (apazzolini)
  • Field Details

    • applicationContext

      protected static org.springframework.context.ApplicationContext applicationContext
      Deprecated.
  • Constructor Details

    • BLCSystemProperty

      public BLCSystemProperty()
      Deprecated.
  • Method Details

    • resolveSystemProperty

      public static String resolveSystemProperty(String name)
      Deprecated.
      See Also:
    • resolveSystemProperty

      public static String resolveSystemProperty(String name, String defaultValue)
      Deprecated.
    • resolveIntSystemProperty

      public static int resolveIntSystemProperty(String name)
      Deprecated.
      See Also:
    • resolveIntSystemProperty

      public static int resolveIntSystemProperty(String name, int defaultValue)
      Deprecated.
    • resolveBooleanSystemProperty

      public static boolean resolveBooleanSystemProperty(String name)
      Deprecated.
      See Also:
    • resolveBooleanSystemProperty

      public static boolean resolveBooleanSystemProperty(String name, boolean defaultValue)
      Deprecated.
    • resolveLongSystemProperty

      public static long resolveLongSystemProperty(String name)
      Deprecated.
      See Also:
    • resolveLongSystemProperty

      public static long resolveLongSystemProperty(String name, long defaultValue)
      Deprecated.
    • getSystemPropertiesService

      protected static SystemPropertiesService getSystemPropertiesService()
      Deprecated.
      Returns:
      the "blSystemPropertiesService" bean from the application context
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Deprecated.
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException