PicoContainer
  1. PicoContainer
  2. PICO-267

Using javabeans PropertyEditors with BeanPropertyComponentAdapter

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2-RC1
    • Fix Version/s: 1.2
    • Component/s: PicoContainer (Java)
    • Labels:
      None
    • Testcase included:
      yes
    • Number of attachments :
      1

      Description

      Here's a patch that allows to set bean properties using a PropertyEditor if one is present: that is, if an editor exists for the property being set, it is going to be used to translate a String representation of a bean property into an actual object.

      There is something similar in Spring, and I needed this to be able to leverage the from Acegi. (They're used to convert complex strings from the spring config into objects used by acegi.

      Please tell me what you think.

        Issue Links

          Activity

          Grégory Joseph made changes -
          Field Original Value New Value
          Link This issue is related to PICO-233 [ PICO-233 ]
          Grégory Joseph made changes -
          Description Here's a patch that allows to set bean properties using a PropertyEditor if one is present: that is, if an editor exists for the property being set, it is going to be used to translate a String representation of a bean property into an actual object.

          There is something similar in Spring, and I needed this to be able to leverage the from Acegi. (They're used to convert complex strings from the spring config into objects used by acegi.

          Please tell me what you think.
          I didn't apply it immediately, 'cause I now have some failing tests in nano (XMLContainerBuilderTestCase for instance), and I'll have a look at those to see if there's any relation ...
          Here's a patch that allows to set bean properties using a PropertyEditor if one is present: that is, if an editor exists for the property being set, it is going to be used to translate a String representation of a bean property into an actual object.

          There is something similar in Spring, and I needed this to be able to leverage the from Acegi. (They're used to convert complex strings from the spring config into objects used by acegi.

          Please tell me what you think.
          Grégory Joseph made changes -
          Assignee Grégory Joseph [ gjoseph ]
          Hide
          Grégory Joseph added a comment -

          Patch applied - thanks Mauro for reviewing

          Show
          Grégory Joseph added a comment - Patch applied - thanks Mauro for reviewing
          Grégory Joseph made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.2 [ 11330 ]
          Hide
          Paul Hammant added a comment -

          Is there any chancge you could speak to the Acegi team about being less dependent on Spring. [ most notably some exceptions from Spring's package hierachy ? ]

          Closing this issue, as you seem happy.

          Show
          Paul Hammant added a comment - Is there any chancge you could speak to the Acegi team about being less dependent on Spring. [ most notably some exceptions from Spring's package hierachy ? ] Closing this issue, as you seem happy.
          Paul Hammant made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Grégory Joseph
              Reporter:
              Grégory Joseph
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: