getClass().getSimpleName()));
}
InjectManager beanManager = InjectManager.create();
AnnotatedTypeImpl beanType = new AnnotatedTypeImpl(_cl, _cl);
if (_name != null) {
beanType.addAnnotation(Names.create(_name));
}
for (Annotation binding : _bindings) {
beanType.addAnnotation(binding);
}
for (Annotation stereotype : _stereotypes) {
beanType.addAnnotation(stereotype);
}
for (Annotation ann : _annotations) {
beanType.addAnnotation(ann);
}
BeanFactory factory = beanManager.createBeanFactory(beanType);
if (_scope != null)