public Class getClassPropertyWithDefault()

in src/main/java/com/amazonaws/secretsmanager/util/Config.java [260:273]


    public Class<?> getClassPropertyWithDefault(String propertyName, Class<?> defaultValue) {
        String propertyValue = config.getProperty(propertyName);
        if (propertyValue == null) {
            return defaultValue;
        } else {
            try  {
                return Class.forName(propertyValue);
            } catch (ClassNotFoundException e) {
                throw new PropertyException(fullPropertyName(propertyName) + " must be a valid class name. Please check"
                                           + " " + Config.CONFIG_FILE_NAME + " or your system properties for typos.",
                                           e);
            }
        }
    }