@Test void shouldThrowForInjectMethodInParent() { InjectorException ex = assertThrows(InjectorException.class, () -> provider.safeGet(ChildOfParentWithInjectMethod.class)); assertThat(ex.getMessage(), containsString("@Inject on methods is not supported")); }
@Override public <T> Resolution<T> safeGet(Class<T> clazz) { verifyIsClassPackageAllowed(clazz); return super.safeGet(clazz); }
DefaultInjectionProvider extends StandardInjectionProvider { @Override public <T> Resolution<T> safeGet(Class<T> clazz) { verifyIsClassPackageAllowed(clazz); return super.safeGet(clazz); } }
DefaultInjectionProvider extends StandardInjectionProvider { @Override public <T> Resolution<T> safeGet(Class<T> clazz) { verifyIsClassPackageAllowed(clazz); return super.safeGet(clazz); } DefaultInjectionProvider(String rootPackage); }
DefaultInjectionProvider extends StandardInjectionProvider { @Override public <T> Resolution<T> safeGet(Class<T> clazz) { verifyIsClassPackageAllowed(clazz); return super.safeGet(clazz); } DefaultInjectionProvider(String rootPackage); @Override Resolution<T> safeGet(Class<T> clazz); }
DefaultInjectionProvider extends StandardInjectionProvider { @Override public <T> Resolution<T> safeGet(Class<T> clazz) { verifyIsClassPackageAllowed(clazz); return super.safeGet(clazz); } DefaultInjectionProvider(String rootPackage); @Override Resolution<T> safeGet(Class<T> clazz);  }