Class PlatformSystemPropertyResolver
- java.lang.Object
-
- com.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
-
- com.hybris.backoffice.cockpitng.util.impl.PlatformSystemPropertyResolver
-
- All Implemented Interfaces:
com.hybris.cockpitng.core.util.CockpitProperties
public class PlatformSystemPropertyResolver extends com.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistryRe-maps platform properties to cockpit properties, with an optional prefix. Example: There is a property 'cockpitng.appTitle'. If you have no prefix defined, you can just specify it in your local.properties. If you have a prefix defined, e.g. "myApp.", you must specify it like 'myApp.cockpitng.appTitle'.
-
-
Constructor Summary
Constructors Constructor Description PlatformSystemPropertyResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleangetBoolean(java.lang.String key)booleangetBoolean(java.lang.String key, boolean defaultValue)doublegetDouble(java.lang.String key)intgetInteger(java.lang.String key)protected java.lang.StringgetPrefix()java.util.Map<java.lang.String,java.lang.String>getProperties()java.lang.StringgetProperty(java.lang.String key)voidinitProperties()protected voidinitProperties(java.lang.String filename)Deprecated, for removal: This API element is subject to removal in a future version.since 6.5 - this method does nothing and should not be usedvoidsetPrefix(java.lang.String prefix)voidsetProperties(java.util.Map<java.lang.String,java.lang.String> properties)Deprecated, for removal: This API element is subject to removal in a future version.since 6.5 - this method does nothing and should not be used
-
-
-
Method Detail
-
initProperties
public void initProperties()
- Overrides:
initPropertiesin classcom.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
-
initProperties
@Deprecated(since="6.5", forRemoval=true) protected void initProperties(java.lang.String filename)Deprecated, for removal: This API element is subject to removal in a future version.since 6.5 - this method does nothing and should not be used- Overrides:
initPropertiesin classcom.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
-
setProperties
@Deprecated(since="6.5", forRemoval=true) public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)Deprecated, for removal: This API element is subject to removal in a future version.since 6.5 - this method does nothing and should not be used- Overrides:
setPropertiesin classcom.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
-
getProperty
public java.lang.String getProperty(java.lang.String key)
- Specified by:
getPropertyin interfacecom.hybris.cockpitng.core.util.CockpitProperties- Overrides:
getPropertyin classcom.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
-
getBoolean
public boolean getBoolean(java.lang.String key)
- Specified by:
getBooleanin interfacecom.hybris.cockpitng.core.util.CockpitProperties- Overrides:
getBooleanin classcom.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
-
getBoolean
public boolean getBoolean(java.lang.String key, boolean defaultValue)- Specified by:
getBooleanin interfacecom.hybris.cockpitng.core.util.CockpitProperties- Overrides:
getBooleanin classcom.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
-
getInteger
public int getInteger(java.lang.String key)
- Specified by:
getIntegerin interfacecom.hybris.cockpitng.core.util.CockpitProperties- Overrides:
getIntegerin classcom.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
-
getDouble
public double getDouble(java.lang.String key)
- Specified by:
getDoublein interfacecom.hybris.cockpitng.core.util.CockpitProperties- Overrides:
getDoublein classcom.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
- Specified by:
getPropertiesin interfacecom.hybris.cockpitng.core.util.CockpitProperties- Overrides:
getPropertiesin classcom.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
-
getPrefix
protected java.lang.String getPrefix()
-
setPrefix
public void setPrefix(java.lang.String prefix)
-
-