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-2222

Transformers not generated by object factories

  • 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:
    Medium
  • Similar Issues:
    None

Description

Transformers are generated directly from classes. I understand we should instead use objectFactoyr (or whatever that becomes) for all object generation.

Issue Links

blocks

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.
is blocked by

Task - A task that needs to be done. MULE-2056 Investigate using Spring app context (via MuleRegistry) to create objects "on-the-fly"

  • Major - Major loss of function.
  • 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-2229 Custom Connector doesn't use ObjectFactory

  • 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:52 PM

Transformers 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:52 PM Transformers 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 09:49 AM
    Updated:
    07/Jan/08 12:52 PM
    Resolved:
    07/Jan/08 12:52 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.