Class ProvisioningProperties


  • public final class ProvisioningProperties
    extends java.lang.Object
    The ProvisioningProperties is an utility class to read a properties file containing data for automatic provisioning.
    • Field Detail

      • PARAM_AUTOMATIC_PROVISIONING

        public static final java.lang.String PARAM_AUTOMATIC_PROVISIONING
        Request parameter name for automatic provisioning.
        See Also:
        Constant Field Values
      • PROP_PROVISIONING_CONTAINER_FOLDER

        public static final java.lang.String PROP_PROVISIONING_CONTAINER_FOLDER
        Name of the system property holding the parent directory of the properties file.
        See Also:
        Constant Field Values
      • PROP_PROVISIONING_FILE_NAME

        public static final java.lang.String PROP_PROVISIONING_FILE_NAME
        File name of the properties file holding the provisioning data.
        See Also:
        Constant Field Values
    • Method Detail

      • getAutomaticProvisioningData

        public static java.util.Properties getAutomaticProvisioningData()
        Reads the provisioning properties file with the name PROP_PROVISIONING_FILE_NAME from the working directory. If the system property PROP_PROVISIONING_CONTAINER_FOLDER is set, the method attempts to read the file from there.

        The file should contain prefixed properties in the form of <servicename>.<property> (i.e. analytics.company)

        Returns:
        Properties or null if the file does not exist or can't be read.