当前位置: 动力学知识库 > 问答 > 编程问答 >

locale - SPI for localization in Java

问题描述:

Regarding the SPI package (service provider interface) of the locales.

Directly from this oracle java tutorial:

These methods first check whether the Java runtime environment

supports the requested locale; if so, they use that support.

Otherwise, the methods call the getAvailableLocales() methods of

installed providers for the appropriate interface to find a provider

that supports the requested locale.

Once I create a spi interface and implement it by overriding all the methods needed to, How can I install that class in order to make that class seen at run time?

Thanks in advance.

分享给朋友:
您可能感兴趣的文章:
随机阅读: