java-atk-wrapper accessibility and openjdk9

Fridrich Strba fridrich.strba at suse.com
Thu Oct 26 07:40:47 UTC 2017


Good people,

On 26/10/17 08:40, Fridrich Strba wrote:
> It looks like the java-atk-wrapper has to implement the
> https://docs.oracle.com/javase/9/docs/api/javax/accessibility/AccessibilityProvider.html
> 
> Which, in my understanding means implementing two methods: getName and
> activate. Not sure whether creating a new class that implements those
> two methods and where the activate method loads the AtkWrapper class
> should be enough.

Actually reading the code in java.awt.Toolkit, I realize that
java-atk-wrapper as it is now can work. For any class that is declared
as assistive_technologies and does not implement the
AccessibilityProvider, the java.awt.Toolkit has a static method
fallbackToLoadClassForAT which loads happily the AtkWrapper with the
class name from our java-atk-wrapper.jar.

So, this solution, although maybe not as elegant as that, could work.

Cheers

Fridrich

P.S.: It is always possible to implement the AccessibilityProvider by
dropping the attached file to the wrapper/org/GNOME/Accessibility/
directory and also craft inside the JAR file a
META-INF/services/javax.accessibility.AccessibilityProvider with content
"org.GNOME
.Accessibility.AtkWrapper"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AtkProvider.java
Type: text/x-java
Size: 1264 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20171026/4e6ae80c/AtkProvider.java>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20171026/4e6ae80c/signature.asc>


More information about the distro-pkg-dev mailing list