Results 1 to 3 of 3

Thread: Type of autowire used in the AbstractPathMapHandlerMapping

  1. #1
    Join Date
    Oct 2004
    Location
    Porto Alegre/RS/Brazil
    Posts
    20

    Default Type of autowire used in the AbstractPathMapHandlerMapping

    is there a reason to "autowire by type" be used instead of "autowire by name" in the AbstractPathMapHandlerMapping/CommonsPathMapHandlerMapping?
    and it is verifying dependencies too, this is a problem if you want to map with attributes a MultiActionController
    and is a problem too, when like in the application I'm working on, I have just one dao implementation (using Hibernate and QBE) and just a property in this dao specifies what class it should work with.

    I solved my problem for now, changing the line 78 of AbstractPathMapHandlerMapping to:
    Code:
    Object handler = beanFactory.autowire(handlerClass, AutowireCapableBeanFactory.AUTOWIRE_BY_NAME, false);
    what do you think about providing at least a configuration for this properties, so the user can choose the behavior of this class?

  2. #2
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    This is a good idea. Please raise an issue for this in JIRA, against 1.1.3, and I'll make the enhancement.

    Good to see someone using that class: there doesn't seem to have been a lot of interest in it.
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

  3. #3
    Join Date
    Oct 2004
    Location
    Porto Alegre/RS/Brazil
    Posts
    20

    Default

    just did it,
    the same text as above, and the jira ID/link is:
    http://opensource.atlassian.com/proj...browse/SPR-442

    I loved the idea of less XML for configuration

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  3. Replies: 4
    Last Post: Aug 17th, 2005, 04:42 AM
  4. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  5. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •