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.
Interface | 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.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps