[REVIEW] Make controller instantiation customizable
Richard.Bair at oracle.com
Fri Dec 16 16:24:35 PST 2011
On Dec 16, 2011, at 4:21 PM, Greg Brown wrote:
>>>> <param fx:id="someParameterInTheNamedParametersMap" />
>> I need a couple days to really think about it. The basic idea is that it provides an alternative way to populate the FXML namespace with things that could be referenced. So for example instead of having to add properties to a controller that your FXML then binds to, you could just create a <param> for elements in your namespace map provided on the FXML loader and then you could reference those from elsewhere in the document.
> I'm afraid I still don't completely understand. Could you provide a concrete example?
I hope to next week, I need more time to think it through.
>>> It would be consistent with other unrelated parts of the platform, but not with the BuilderFactory interface, which is used by FXMLLoader and is already defined similarly to ControllerFactory.
>> The difference is that BuilderFactory is intended to be implemented by random code. That is, every Builder in existence is supposed to implement it.
> I think you may be thinking of Builder, rather than BuilderFactory. BuilderFactory defines a single getBuilder() method, like ControllerFactory's getController()
You are right, I was. Drat, it should have been a Callable :-(
More information about the openjfx-dev