Just set the ctor on the bean meta data to use the JBossASKernel.AlreadyInstantiated ctor
metadata. I think we are doing this elsewhere for the situation you describe.
| public static class AlreadyInstantiated extends AbstractConstructorMetaData
| {
| private static final long serialVersionUID = 1L;
|
| private Object bean;
|
| public class Factory
| {
|
| public Object create()
| {
| return bean;
| }
| }
|
| public AlreadyInstantiated(Object bean)
| {
| this.bean = bean;
| this.setFactory(new AbstractValueMetaData(new Factory()));
| this.setFactoryClass(Factory.class.getName());
| this.setFactoryMethod("create");
| }
| }
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233735#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...