Class DevUtils


  • public class DevUtils
    extends Object
    Deprecated.
    Use XXProperties instead.
    Tools for development, such as centralizing certain things for testing.

    Created by Jeff Gaynor
    on 8/18/23 at 9:19 AM

    • Constructor Detail

      • DevUtils

        public DevUtils()
        Deprecated.
    • Method Detail

      • getTestProperties

        public static XProperties getTestProperties​(String filename)
                                             throws IOException
        Deprecated.
        Test properties. These are in the local resources directory and will have substitutions carried out for OS environment variables and Java system properties. So a typical entry might be
             sec-lib.jwt.keys=${NCSA_CONFIG_ROOT}/sas/keys.jwk
         
        If the value of NCSA_CONFIG_ROOT was set in the current (operating system) environment then it will be resolved and used.
        Parameters:
        filename -
        Returns:
        Throws:
        IOException
      • getAllProperties

        public static Map<String,​String> getAllProperties()
        Deprecated.
        A Map of all the OS and java properties for use resolving configuration testing files. Java properties override OS properties. Typically given to the JVM at startup with a -D prefix, so to set the property named my.prop at startup for the application MyApp you'd write
             java -Dmy.prop="my-value" MyApp
         
        Returns:
      • main

        public static void main​(String[] args)
        Deprecated.