beanPostProcessor.setAutowiredAnnotationType(Inject.class);
beanPostProcessor.setBeanFactory(factory);
factory.addBeanPostProcessor(beanPostProcessor);
//
CommonAnnotationBeanPostProcessor commonAnnotationBeanProcessor = new CommonAnnotationBeanPostProcessor();
factory.addBeanPostProcessor(commonAnnotationBeanProcessor);
//
Set cqt = new HashSet();
cqt.add(Named.class);