I have the following service method:
public static <T> T service(final Class<T> klass) {...}
And I use it this way
SomeService someService = service(SomeService.class);
However, using this approach I can't get generic service, for example what should I do if I need
SomeService<Foo> someService = ???
How to do it? How to make service method?
Aucun commentaire:
Enregistrer un commentaire