public static LocaleProviderAdapter forType(Type type){
switch (type) {
case JRE:
    return jreLocaleProviderAdapter;
case CLDR:
  return cldrLocaleProviderAdapter;
case SPI:
return spiLocaleProviderAdapter;
case HOST:
return hostLocaleProviderAdapter;
case FALLBACK:
return fallbackLocaleProviderAdapter;
default :
throw new InternalError("unknown locale data adapter type");
}
}

public static LocaleProviderAdapter forType ( Type type ) { switch ( type ) { case JRE : return jreLocaleProviderAdapter ; case CLDR : return cldrLocaleProviderAdapter ; case SPI : return spiLocaleProviderAdapter ; case HOST : return hostLocaleProviderAdapter ; case FALLBACK : return fallbackLocaleProviderAdapter ; default : throw new InternalError ( "unknown locale data adapter type" ) ; } }
returns the singleton instance for each adapter type
