Concern: method invocation like this : xxxDetailesView.instance()

Where ?
in Roo generated Expenses App
in xxxActivitiesMapper classes (eg. EmployeeActivitiesMapper)
in getActivity method,

return new
EmployeeDetailsActivity((EntityProxyId<EmployeeProxy>)place.getProxyId(),
requests,
          placeController, ScaffoldApp.isMobile() ?
EmployeeMobileDetailsView.instance() :
EmployeeDetailsView.instance());

Details:
 xxxDetailesView.instance()

why GWT team decided to use singleton pattern here and not Gin
injection ?
(despite Gin being already setup during scaffold generation)

 EmployeeDetailsView is a Class and not an interface,
how can we then test the getActivity method ? Shouldnt we program to
Interfaces for testability ?

and if the decision was to use GIN, we had to include a number of
views in the constructor,

@Inject
public EmployeeActivitiesMapper(ApplicationRequestFactory requests,
 PlaceController placeController,
IViewA viewA,
IViewB viewB,
IViewC viewC)

wouldnt this result in unnecessary early initialization of views ?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to