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.
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 Summary
FieldsModifier and TypeFieldDescriptionprotected static org.springframework.context.ApplicationContext
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static SystemPropertiesService
Deprecated.static boolean
Deprecated.static boolean
resolveBooleanSystemProperty
(String name, boolean defaultValue) Deprecated.static int
Deprecated.static int
resolveIntSystemProperty
(String name, int defaultValue) Deprecated.static long
Deprecated.static long
resolveLongSystemProperty
(String name, long defaultValue) Deprecated.static String
resolveSystemProperty
(String name) Deprecated.static String
resolveSystemProperty
(String name, String defaultValue) Deprecated.void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) Deprecated.
-
Field Details
-
applicationContext
protected static org.springframework.context.ApplicationContext applicationContextDeprecated.
-
-
Constructor Details
-
BLCSystemProperty
public BLCSystemProperty()Deprecated.
-
-
Method Details
-
resolveSystemProperty
Deprecated. -
resolveSystemProperty
Deprecated. -
resolveIntSystemProperty
Deprecated. -
resolveIntSystemProperty
Deprecated. -
resolveBooleanSystemProperty
Deprecated. -
resolveBooleanSystemProperty
Deprecated. -
resolveLongSystemProperty
Deprecated. -
resolveLongSystemProperty
Deprecated. -
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 interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
SystemPropertiesService
directly _or_ inject anEnvironment
to get properties that way, sinceSystemPropertiesPropertySourceRegistrar
adds aSystemPropertiesService
PropertySource