[REVIEW] Make controller instantiation customizable
Richard Bair
richard.bair at oracle.com
Fri Dec 16 16:53:29 PST 2011
>> <?param name="presenter" type="com.zenjava.contacts.search.ContactSearchPresenterInterface"/>
>> <?param name="model" type="com.zenjava.contacts.search.ContactSearchModelInterface"/>
>
> OK, that's what I thought. You basically want a way to declare typed arguments to the document. I understand why this might be appealing, but I do think it requires some additional thought.
>
> I also think that this discussion is independent of the current discussion about ControllerFactory. It basically represents a possible alternative to the existing controller construct. However, the controller is currently part of the public API and works well in many scenarios, so it probably isn't going away any time soon. Since ControllerFactory addresses a valid requirement with respect to that controller, I'd suggest that we go ahead with the proposed (typed) version of ControllerFactory and revisit the param concept in a later release.
That's what I was thinking too. If the <param> approach turns out to be taken, then in many ways the ControllerFactory becomes less important because for all those custom dependency injection sort of scenarios, you can actually just use the <param> approach instead (and probably would?). But ControllerFactory isn't painful, especially if it is just a Callback ;-)
Richard
More information about the openjfx-dev
mailing list