ResolvableType type = ResolvableType.forClassWithGenerics(ClassWithGenericType.class, GenericType.class); ObjectProvider<Object> = applicationContext.getBeanProvider(type);