Class Utility


  • public class Utility
    extends Object
    Utility class that can be used by any calling code to do common routines
    Author:
    shreedhar ganapathy, Bongjae Chang
    • Constructor Detail

      • Utility

        public Utility()
    • Method Detail

      • setLogger

        public static void setLogger​(Logger theLogger)
      • getGMSMember

        public static com.sun.enterprise.ee.cms.core.GMSMember getGMSMember​(SystemAdvertisement systemAdvertisement)
      • getStringProperty

        public static String getStringProperty​(String propertyName,
                                               String defaultValue,
                                               Map props)
      • getIntProperty

        public static int getIntProperty​(String propertyName,
                                         int defaultValue,
                                         Map props)
      • getLongProperty

        public static long getLongProperty​(String propertyName,
                                           long defaultValue,
                                           Map props)
      • getBooleanProperty

        public static boolean getBooleanProperty​(String propertyName,
                                                 boolean defaultValue,
                                                 Map props)
      • setupLogHandler

        public static void setupLogHandler()