/** * Initializes the region metadata singleton from the given resource. * * @param classLoader the class loader to use to load the resource * @param name the path to the resource * @throws SdkClientException on error */ @Deprecated public static synchronized void initializeFromResource( final ClassLoader classLoader, final String name) { try { regionMetadata = loadMetadataFromResource(classLoader, name); } catch (IOException exception) { throw new SdkClientException( "Error parsing region metadata from resource " + name, exception); } } }
/** * Initializes the region metadata singleton from the given resource. * * @param clazz the class to use as a base for the resource * @param name the path to the resource, relative to the given class * @throws SdkClientException on error */ @Deprecated public static synchronized void initializeFromResource( final Class<?> clazz, final String name) { try { regionMetadata = loadMetadataFromResource(clazz, name); } catch (IOException exception) { throw new SdkClientException( "Error parsing region metadata from resource " + name, exception); } }
/** * Initializes the region metadata singleton from the given resource. * * @param clazz the class to use as a base for the resource * @param name the path to the resource, relative to the given class * @throws SdkClientException on error */ @Deprecated public static synchronized void initializeFromResource( final Class<?> clazz, final String name) { try { regionMetadata = loadMetadataFromResource(clazz, name); } catch (IOException exception) { throw new SdkClientException( "Error parsing region metadata from resource " + name, exception); } }
/** * Initializes the region metadata singleton from the given resource. * * @param classLoader the class loader to use to load the resource * @param name the path to the resource * @throws SdkClientException on error */ @Deprecated public static synchronized void initializeFromResource( final ClassLoader classLoader, final String name) { try { regionMetadata = loadMetadataFromResource(classLoader, name); } catch (IOException exception) { throw new SdkClientException( "Error parsing region metadata from resource " + name, exception); } } }
/** * Initializes the region metadata singleton from the given resource. * * @param clazz the class to use as a base for the resource * @param name the path to the resource, relative to the given class * @throws SdkClientException on error */ @Deprecated public static synchronized void initializeFromResource( final Class<?> clazz, final String name) { try { regionMetadata = loadMetadataFromResource(clazz, name); } catch (IOException exception) { throw new SdkClientException( "Error parsing region metadata from resource " + name, exception); } }
/** * Initializes the region metadata singleton from the given resource. * * @param classLoader the class loader to use to load the resource * @param name the path to the resource * @throws SdkClientException on error */ @Deprecated public static synchronized void initializeFromResource( final ClassLoader classLoader, final String name) { try { regionMetadata = loadMetadataFromResource(classLoader, name); } catch (IOException exception) { throw new SdkClientException( "Error parsing region metadata from resource " + name, exception); } } }