Grails
  1. Grails
  2. GRAILS-6792

Can't use property override configuration on FactoryBean instances

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.3.5
    • Fix Version/s: None
    • Component/s: Configuration
    • Labels:
      None

      Description

      If you attempt to use property override configuration on a bean that implements BeanFactory and is not a TransactionProxyFactoryBean the application fails to start with the error "Unable to determine target bean definition for FactoryBeans of type x"

      It looks like MapBasedSmartPropertyOverrideConfigurer assumes you must want to override properties of the target bean rather than the factory bean itself. However, it's reasonable to want to do so, e.g. setting configLocation on EhCacheManagerFactoryBean.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Robert Fletcher
          • Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Last Reviewed:

              Development