return guiceInjectorProxy;
}
private Class<? extends GinModule>[] readGinModules(Class<? extends Ginjector> classLiteral) {
LOGGER.debug("inspecting classLiteral " + classLiteral);
GinModules annotation = classLiteral.getAnnotation(GinModules.class);
if (annotation == null) {
// Throw an exception if we don't find this specific annotation.
throw new IllegalArgumentException(classLiteral.getName()
+ " doesn't have any @GinModules annotation present");
}
Class<? extends GinModule>[] ginModules = annotation.value();
if (ginModules == null || ginModules.length == 0) {
// there are no GinModules present in the Ginjector.
throw new IllegalArgumentException(classLiteral.getName()
+ " doesn't have any GinModules. " + "Runtime should not work.");