Class 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'.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean getBoolean​(java.lang.String key)  
      boolean getBoolean​(java.lang.String key, boolean defaultValue)  
      double getDouble​(java.lang.String key)  
      int getInteger​(java.lang.String key)  
      protected java.lang.String getPrefix()  
      java.util.Map<java.lang.String,​java.lang.String> getProperties()  
      java.lang.String getProperty​(java.lang.String key)  
      void initProperties()  
      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
      void setPrefix​(java.lang.String prefix)  
      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
      • Methods inherited from class com.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry

        getCacheTimeoutInSeconds, getLocalPropertyFile, getProjectPropertyFile, setCacheTimeoutInSeconds, setLocalPropertyFile, setProjectPropertyFile
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlatformSystemPropertyResolver

        public PlatformSystemPropertyResolver()
    • Method Detail

      • 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​(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:
        initProperties in class com.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:
        setProperties in class com.hybris.cockpitng.core.util.impl.DefaultPropertyResolverRegistry
      • getProperty

        public java.lang.String getProperty​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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 java.util.Map<java.lang.String,​java.lang.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 java.lang.String getPrefix()
      • setPrefix

        public void setPrefix​(java.lang.String prefix)