JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-2583 Replace all class name string variabl...
  • MULE-2229

Custom Connector doesn't use ObjectFactory

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix or Usage Issue
  • Affects Version/s: 2.0.0-M1
  • Fix Version/s: None
  • Component/s: Core: Configuration
  • Labels:
    None
  • User impact:
    Low
  • Similar Issues:
    None

Description

As with transformers, I thought we were using a separate factory?

Issue Links

blocks

Improvement - An improvement or enhancement to an existing feature or task. MULE-2224 Normalize Connector element

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Improvement - An improvement or enhancement to an existing feature or task. MULE-2583 Replace all class name string variables with ObjectFactories

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
relates to

Sub-task - The sub-task of the issue MULE-2222 Transformers not generated by object factories

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds
Hide
Permalink
Travis Carlson added a comment - 07/Jan/08 12:26 PM

Connectors are 1st-class citizens, and therefore do not need an ObjectFactory, i.e., their "ObjectFactory" is Spring IoC itself. ObjectFactories should be used for those objects which are not created by Spring but rather on-the-fly by Mule using code such as the following:

Class objectFactoryClass = ClassUtils.loadClass(this.connectionFactoryClass, getClass());
    FtpConnectionFactory connectionFactory =
       (FtpConnectionFactory) ClassUtils.instanciateClass(getConnectionFactoryClass(),
                                                                                       new Object[] {uri}, getClass());
Show
Travis Carlson added a comment - 07/Jan/08 12:26 PM Connectors are 1st-class citizens, and therefore do not need an ObjectFactory, i.e., their "ObjectFactory" is Spring IoC itself. ObjectFactories should be used for those objects which are not created by Spring but rather on-the-fly by Mule using code such as the following:
Class objectFactoryClass = ClassUtils.loadClass(this.connectionFactoryClass, getClass());
    FtpConnectionFactory connectionFactory =
       (FtpConnectionFactory) ClassUtils.instanciateClass(getConnectionFactoryClass(),
                                                                                       new Object[] {uri}, getClass());

People

  • Assignee:
    Travis Carlson
    Reporter:
    andrew cooke
Vote (0)
Watch (0)

Dates

  • Created:
    29/Aug/07 02:54 PM
    Updated:
    07/Jan/08 12:26 PM
    Resolved:
    07/Jan/08 12:26 PM

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.