for (String resourceClassName : configurations)
{
if (!globalConfigurations.containsKey(resourceClassName))
{
Class<?> clazz = Class.forName(resourceClassName);
IoCResource ioCResource = clazz.getAnnotation(IoCResource.class);
bindTypeImplicitly(clazz, globalConfigurations);
IocConfig<?> iocConfig = globalConfigurations.get(resourceClassName);
if (!ioCResource.bindClass().equals(NoClass.class))
{
iocConfig.toClass((Class) ioCResource.bindClass());
}
if (!ioCResource.provider().equals(NoProvider.class))
{
iocConfig.toProvider((Class)ioCResource.provider());
}
iocConfig.runtimeAccessible(ioCResource.runtimeAccessible());
iocConfig.scope(ioCResource.scope());
}
}
}
}