Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-2453

Handle referencing a previously-defined bean for factory-ref property

    Details

      Description

      While working on FUSETOOLS-2417 I discovered that we need the ability to reference a previously-defined bean. This comes into play with the factory-ref property specified for a bean definition.

      Something like this:

         <bean id="accountFactory"
          class="org.apache.aries.simple.AccountFactory">  
             <argument value="account factory"/>  
         </bean>
      
         <bean id="accountThree"
           factory-ref="accountFactory" 
           factory-method="createAccount">   
             <argument value="3"/>
         </bean>
      

      We need a way to reference a bean by ID/name and then to allow selection of a method from the referenced bean.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bfitzpat Brian Fitzpatrick
                  Reporter:
                  bfitzpat Brian Fitzpatrick
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: