/** * There is no need to call this method, it is public only for * Compatibility. Every regions method makes sure this method has already * been called. This method will load the regions (specified by the * developer if the system property * SDKGlobalConfiguraiton.REGIONS_FILE_OVERRIDE_SYSTEM_PROPERTY is set, or * the defaults shipped with the SDK) into memory. */ public static synchronized void init() { if (System.getProperty(REGIONS_FILE_OVERRIDE_SYSTEM_PROPERTY) != null) { try { loadRegionsFromOverrideFile(); } catch (FileNotFoundException e) { throw new RuntimeException("Couldn't find regions override file specified", e); } } // Fall back onto the version we ship with the SDK if (regions == null) { initSDKRegions(); } // Throw out RuntimeException explicitly if (regions == null) { throw new RuntimeException("Failed to initialize the regions."); } }
/** * There is no need to call this method, it is public only for * Compatibility. Every regions method makes sure this method has already * been called. This method will load the regions (specified by the * developer if the system property * SDKGlobalConfiguraiton.REGIONS_FILE_OVERRIDE_SYSTEM_PROPERTY is set, or * the defaults shipped with the SDK) into memory. */ public static synchronized void init() { if (System.getProperty(REGIONS_FILE_OVERRIDE_SYSTEM_PROPERTY) != null) { try { loadRegionsFromOverrideFile(); } catch (FileNotFoundException e) { throw new RuntimeException("Couldn't find regions override file specified", e); } } // Fall back onto the version we ship with the SDK if (regions == null) { initSDKRegions(); } // Throw out RuntimeException explicitly if (regions == null) { throw new RuntimeException("Failed to initialize the regions."); } }
/** * There is no need to call this method, it is public only for * Compatibility. Every regions method makes sure this method has already * been called. This method will load the regions (specified by the * developer if the system property * SDKGlobalConfiguraiton.REGIONS_FILE_OVERRIDE_SYSTEM_PROPERTY is set, or * the defaults shipped with the SDK) into memory. */ public static synchronized void init() { if (System.getProperty(REGIONS_FILE_OVERRIDE_SYSTEM_PROPERTY) != null) { try { loadRegionsFromOverrideFile(); } catch (FileNotFoundException e) { throw new RuntimeException("Couldn't find regions override file specified", e); } } // Fall back onto the version we ship with the SDK if (regions == null) { initSDKRegions(); } // Throw out RuntimeException explicitly if (regions == null) { throw new RuntimeException("Failed to initialize the regions."); } }