ServiceLoader
Tom Eugelink
tbee at tbee.org
Tue Sep 3 09:43:13 PDT 2013
On 2013-09-03 17:49, Richard Bair wrote:
>> In this case, since JavaFX is Free Software! you can actually suggest
>> the fix, prototype and propose the patch yourself, limiting the round
>> trip time substantially.
>>
That said, in JFXtras I've created an extended FactoryBuilder that dynamically loads builder classes using Java's standard ServiceLoader approach. Would this be of interest for inclusion directly into JavaFX?
https://github.com/JFXtras/jfxtras-labs/blob/2.2/src/main/java/jfxtras/labs/fxml/JFXtrasBuilderFactory.java
It does require a slightly extended Builder interface though.
https://github.com/JFXtras/jfxtras-labs/blob/2.2/src/main/java/jfxtras/fxml/BuilderService.java
A little blabla about this on this blog entry:
http://tbeernot.wordpress.com/2013/08/25/fxml-builders-detection/
Tom
More information about the openjfx-dev
mailing list