Accessibility provider classpath
Philip Race
philip.race at oracle.com
Wed Sep 20 21:48:45 UTC 2023
Can you explain your need for this (a lot) better ?
The location and loading is specified to be done by
java.util.ServiceLoader.
Whilst this might be possible by some enhanced syntax, which if present
invokes ServiceLoader specifying a ClassLoader for this jar file, it
would clearly be new API and only for future releases.
NB it would also be fiddly to implement as the value of the property is
a list of class names and
you can't add jar names to that without breaking older JDKs and
so you'd need some way to match new lines referencing the JAR file for
each class ..
And likely we'd want to have new APIs like this - if they make sense - to
be focused on a module, not a jar, but building a runtime image from
modules using jlink is a normal thing to do, so I'm not sure what such
an API would look like and seems to be not what you want.
I also don't understand the use case / problem.
Whatever launches your application can set
-Djavax.accessibility.assistive_technologies=<..>
and set the -cp to include your jar and you don't need to do anything
to the runtime image.
-phil
On 9/20/23 1:33 PM, Vladimir Petko wrote:
> Hi,
>
> Java accessibility.properties (.accessibility.properties) allows
> setting the class name of the accessibility provider but not the jar
> file containing it.
>
> Was there any consideration that prevents this feature from being
> implemented, such as security?
>
> It would be nice to have it implemented to allow system-wide/per-user
> configuration of the accessibility provider without rebuilding the
> runtime image.
>
> If this is something acceptable, I am happy to create an enhancement
> issue and work on it.
>
> Best Regards,
> Vladimir.
More information about the client-libs-dev
mailing list