autowire_txman
).label("transaction manager auto detection");
}
final Class type = c.getType();
final Component r = createSpringBeanComponent(c, ctxt, transaction_manager, transaction_attributes, interfaces);
if(type!=null && BeanPostProcessor.class.isAssignableFrom(type)){
//does bpp suffer from proxies?
ctxt.addBeanPostProcessor(ctxt.getTagName(), c);
}
if(type!=null && FactoryBean.class.isAssignableFrom(type)){
//for factory bean, we do not know its type in advance.
return r;
}
if(transaction_attributes!=null){
//for beans to be proxied, we do not know the type.
return r;
}
if(r.getType()==null && type!=null)
return ctxt.cast(type, r);
else return r;
}