Re: How to avoid specifing a tokenizer for each place
Something like:
interface FooFactory {
APlace.Tokenizer fooA();
BPlace.Tokenizer fooB();
}
interface BarFactory {
CPlace.Tokenizer barC();
DPlace.Tokenizer barD();
}
interface MainFactory extends Ginjector, FooFactory, BarFactory {
}
interface MainPlaceHistoryMapper extends PlaceHistoryMapperWithFactory<MainFactory> {
}
MainFactory is a Ginjector, so GIN will generate it's implementation. If your PlaceTokenizer-s are default-instantiable (as they would have to be if used with @WithTokenizers), then you don't even need a GinModule.
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/hb9ImZGNsrMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home