META-INF/services/java.awt.im.spi.InputMethodDescriptorThe 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.InputMethodDesciptor
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.FooInputMethodDescriptorThe 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. Class | Description |
---|---|
InputMethod | Defines the interface for an input method that supports complex text input. |
InputMethodContext | Provides methods that input methods can use to communicate with their client components or to request other services. |
InputMethodDescriptor | Defines methods that provide sufficient information about an input method to enable selection and loading of that input method. |
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/im/spi/package-summary.html