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

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

    XMLWordPrintable

Details

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

    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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: