Results 1 to 2 of 2

Thread: Spring RCP property naming convention vs. PropertyUtils

  1. #1
    Join Date
    Feb 2005
    Posts
    23

    Default Spring RCP property naming convention vs. PropertyUtils

    Hi, we're using Spring RCP to manage forms in the Swing-based side of our UI. However, we also use Struts and Common Controls to manage forms, tables, etc., in the Web-based side of our UI. Both UIs are configurable through XML using the names of the bound properties. However, I'm running into an inconsistency between the two because Struts and Common Controls (and many other toolkits) use PropertyUtils for properties and Spring RCP uses the Spring facilities. For nested properties everything is consistent. However, for mapped properties, things don't seem to work the same. For example, if I have an object bearing the interface:

    Code:
    public interface IMyObject {
        public Map getMappedData();
        public Object getMappedDataValue(String key);
    }
    then in PropertyUtils I can use the property:

    Code:
    myObject.mappedDataValue(key)
    but in Spring RCP it seems I have to use:

    Code:
    myObject.mappedData[key]
    While this doesn't seem terribly important, it does lead to inconsistencies in the format of properties used in the configuration files. Is there any way to configure Spring RCP to use PropertyUtils for its bean access strategy, or can its existing facilities be made to support the PropertyUtils syntax?

    Thanks,
    Scott

  2. #2
    Join Date
    Aug 2004
    Posts
    229

    Default

    This is really Oliver's area of expertise. But, just off the top of my head, I seem to remember that Spring-rich uses some "property accessor" type interface when accessing properties. If so, then it should just be a matter of providing an alternate implementation of the interface. Of course, it's going to take some digging to figure out the details.

    - Andy

Similar Threads

  1. Oracle, Spring - JDBC exception
    By jakim8915 in forum Data
    Replies: 5
    Last Post: Aug 7th, 2006, 09:20 AM
  2. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. Replies: 4
    Last Post: Aug 17th, 2005, 04:42 AM
  5. Replies: 2
    Last Post: May 13th, 2005, 05:42 AM

Posting Permissions

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