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.ApplicationContextDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static SystemPropertiesServiceDeprecated.static booleanDeprecated.static booleanresolveBooleanSystemProperty(String name, boolean defaultValue) Deprecated.static intDeprecated.static intresolveIntSystemProperty(String name, int defaultValue) Deprecated.static longDeprecated.static longresolveLongSystemProperty(String name, long defaultValue) Deprecated.static StringresolveSystemProperty(String name) Deprecated.static StringresolveSystemProperty(String name, String defaultValue) Deprecated.voidsetApplicationContext(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:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
SystemPropertiesServicedirectly _or_ inject anEnvironmentto get properties that way, sinceSystemPropertiesPropertySourceRegistraradds aSystemPropertiesServicePropertySource