1 package test; 2 3 import javax.inject.Inject; 4 import javax.inject.Singleton; 5 6 @Singleton 7 class ScopedGeneric<T> { 8 final T t; 9 @Inject ScopedGeneric(T t) { 10 this.t = t; 11 } 12 }