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

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

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 10.1.0, 10.1.0.AM1
    • 10.0.0.AM1
    • Camel Editor
    • None

      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.

              bfitzpat_rh Brian Fitzpatrick (Inactive)
              bfitzpat_rh Brian Fitzpatrick (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: