META-INF/services/java.awt.im.spi.InputMethodDescriptor
The file should contain a list of fully-qualified class names, one per line,
of classes implementing the java.awt.im.spi.InputMethodDescriptor
interface. Space and tab characters surrounding each name, as well as blank
lines, are ignored. The comment character is '#'
(\u0023); on each line all characters following the first
comment character are ignored. The file must be encoded in UTF-8.
For example, if the fully-qualified name of the class that implements
java.awt.im.spi.InputMethodDescriptor for the Foo input
method is com.sun.ime.FooInputMethodDescriptor, the file
META-INF/services/java.awt.im.spi.InputMethodDescriptor
contains a line:
com.sun.ime.FooInputMethodDescriptor
The input method must also provide at least two classes: one class
implementing the java.awt.im.spi.InputMethodDescriptor interface, one
class implementing the java.awt.im.spi.InputMethod interface. The
input method should separate the implementations for these interfaces, so
that loading of the class implementing InputMethod can be deferred
until actually needed.
InputMethodDescriptor implementations during AWT initialization. It
loads an InputMethod implementation when the input method has been
selected.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | InputMethod
Defines the interface for an input method that supports complex text input. |
| public interface | InputMethodContext
Provides methods that input methods can use to communicate with their client components or to request other services. |
| public interface | InputMethodDescriptor
Defines methods that provide sufficient information about an input method to enable selection and loading of that input method. |