Hi guys, I've been working happily with Tapestry IoC in the past, and now I'm trying to use it with JavaFX. Actually, annotations are not supported in JavaFX but I thought it should be possible to use it by building the registry manually and getting the services explicitly. So I wrote something like that:
var builder: RegistryBuilder = new RegistryBuilder(); builder.add(InjectionTestModule.class); var registry: Registry = builder.build(); registry.performRegistryStartup(); registry.getService(TestInterface.class).test(); where InjectionTestModule is a javafx class containing a build method responsible for the instantiation of TestInterface (also a javafx class). However when I run this example the following exception is thrown: java.lang.RuntimeException: Module class injectiontest.services.InjectionTestModule contains unrecognized public methods: public boolean com.sun.javafx.runtime.FXBase.getAsBoolean$(int,int), public boolean com.sun.javafx.runtime.FXBase.update$(com.sun.javafx.runtime.FXObject,int,int,int,int,int), public boolean com.sun.javafx.runtime.FXBase.varTestBits$(int,int,int), public byte... followed by a bunch of unrecognized methods. I think these methods are automatically generated by the javafx compiler. So my question is: is there a way to make the registry less sensible to unrecognized methods? This would be great to be able to use Tapestry IoC with JavaFX, and I hope a workaround is possible. Thanks for any advice. Cheers, -- Antoine Mischler www.dooapp.com +33 (0)6 50 90 72 94
