[jboss-dev-forums] [Design the new POJO MicroContainer] - No factoryClass does not use class attribute

alesj do-not-reply at jboss.com
Mon Nov 24 09:45:09 EST 2008


Afaik we used to support this:

  |   <bean name="GetInstance" class="org.jboss.test.kernel.deployment.support.GetInstanceBean">
  |     <constructor factoryMethod="getInstance"/>
  |   </bean>
  | 
  | public class GetInstanceBean
  | {
  |    private static final GetInstanceBean instance = new GetInstanceBean("X");
  | 
  |    private GetInstanceBean(String x)
  |    {
  |    }
  | 
  |    public static GetInstanceBean getInstance()
  |    {
  |       return instance;
  |    }
  | }
  | 
Meaning when there was no factoryClass,
the bean's class attribute was used.

I guess this got lost with transition to jbossxb?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191770#4191770

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191770



More information about the jboss-dev-forums mailing list