Örnek
Şöyle yaparız
interface MyInterface<T> { }class MyStringBean implements MyInterface<String> { }class MyIntegerBean implements MyInterface<Integer> { }// resolves to MyStringBean:@InjectMyInterface<String> myString;// resolves to MyIntegerBean:@InjectMyInterface<Integer> myInteger;
Hiç yorum yok:
Yorum Gönder