Class CoreUtilities


  • public class CoreUtilities
    extends java.lang.Object
    A registry free util for getting a platform properties, extension info, tenant info.
    • Constructor Summary

      Constructors 
      Constructor Description
      CoreUtilities​(PlatformConfig config, boolean standaloneMode, int clusterNode)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> getAllConfigProps()  
      java.util.List<java.lang.String> getAllConfiguredExtensionNames()  
      java.lang.String getConfigProperty​(java.lang.String key)
      Gets a configuration property from platform properties
      java.lang.String getConfigProperty​(java.lang.String key, java.lang.String defaultValue)
      Gets a configuration property from platform properties with fallback to default value if null
      ConfigIntf getPlatformConfig()  
      • Methods inherited from class java.lang.Object

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

      • CoreUtilities

        public CoreUtilities​(PlatformConfig config,
                             boolean standaloneMode,
                             int clusterNode)
    • Method Detail

      • getPlatformConfig

        public ConfigIntf getPlatformConfig()
      • getAllConfigProps

        public java.util.Map<java.lang.String,​java.lang.String> getAllConfigProps()
                                                                                 throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException
      • getAllConfiguredExtensionNames

        public java.util.List<java.lang.String> getAllConfiguredExtensionNames()
                                                                        throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException
      • getConfigProperty

        public java.lang.String getConfigProperty​(java.lang.String key)
        Gets a configuration property from platform properties
      • getConfigProperty

        public java.lang.String getConfigProperty​(java.lang.String key,
                                                  java.lang.String defaultValue)
        Gets a configuration property from platform properties with fallback to default value if null