1 Reply Latest reply on Apr 28, 2006 6:59 AM by adrian.brock

    nested beans

    bill.burke

      I'm trying to do this:

       <bean name="MainDeployer" class="org.jboss.deployment.MainDeployerImpl">
       <property name="deployerAspects">
       <list>
       <bean class="org.jboss.deployment.plugins.TCLDeployerAspect"/>
       </list>
       </property>
      
      


      and getting this
      org.jboss.beans.metadata.plugins.AbstractBeanMetaData
      java.lang.ClassCastException: org.jboss.beans.metadata.plugins.AbstractBeanMetaData
      


      Is it possible to do this? Couldn't find examples.


        • 1. Re: nested beans

          No, this feature isn't supported yet. See JIRA
          I haven't considered it important since:

          <bean name="TCLDeployerAspect" ../>
          <bean name="MainDeployer" class="org.jboss.deployment.MainDeployerImpl">
           <property name="deployerAspects">
           <list>
           <inject bean="TCLDeployerAspect"/>
           </list>
           </property>
          


          Gives you what you want.

          All this feature would give you is to make the "TCLDeployerAspect"
          anonymous, with a little bit less xml.