问题描述:

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.

相关阅读:
Top