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.DefaultPropertyResolverRegistry
Re-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 Details

    • PlatformSystemPropertyResolver

      public PlatformSystemPropertyResolver()
  • Method Details

    • initProperties

      public void initProperties()
      Overrides:
      initProperties in class com.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
    • initProperties

      @Deprecated(since="6.5", forRemoval=true) protected void initProperties(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:
      initProperties in class com.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
    • setProperties

      @Deprecated(since="6.5", forRemoval=true) public void setProperties(Map<String,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:
      setProperties in class com.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
    • getProperty

      public String getProperty(String key)
      Specified by:
      getProperty in interface com.hybris.cockpitng.core.util.CockpitProperties
      Overrides:
      getProperty in class com.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
    • getBoolean

      public boolean getBoolean(String key)
      Specified by:
      getBoolean in interface com.hybris.cockpitng.core.util.CockpitProperties
      Overrides:
      getBoolean in class com.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
    • getBoolean

      public boolean getBoolean(String key, boolean defaultValue)
      Specified by:
      getBoolean in interface com.hybris.cockpitng.core.util.CockpitProperties
      Overrides:
      getBoolean in class com.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
    • getInteger

      public int getInteger(String key)
      Specified by:
      getInteger in interface com.hybris.cockpitng.core.util.CockpitProperties
      Overrides:
      getInteger in class com.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
    • getDouble

      public double getDouble(String key)
      Specified by:
      getDouble in interface com.hybris.cockpitng.core.util.CockpitProperties
      Overrides:
      getDouble in class com.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
    • getProperties

      public Map<String,String> getProperties()
      Specified by:
      getProperties in interface com.hybris.cockpitng.core.util.CockpitProperties
      Overrides:
      getProperties in class com.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
    • getPrefix

      protected String getPrefix()
    • setPrefix

      public void setPrefix(String prefix)