Uploaded image for project: 'Commons Sandbox'
  1. Commons Sandbox
  2. SANDBOX-472

Add a registry for Transformer implementations

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Nightly Builds
    • Nightly Builds
    • BeanUtils2
    • None

    Description

      Hi,

      This is my first development JIRA for BU2 so apologies in case i m missing out on basics. Beanutils1 has a functionality wherein all the converters are registered and are called when conversion in value is required. This functionality is missing for BU2 project. I also saw that BeanUtils1 uses WeakFastHashMap for this, which seems like is having issues across architectures and did see few JIRA's on this. Wanted inputs if having a synchronized instance of WeakHashMap wrapped in the TransformerRegsitry class and providing methods to register, deregister, restoreDefault, lookup be desired?

      Attachments

        1. sandbox-472.patch
          18 kB
          Yogesh Rao
        2. TestStringFloatTransformerImpl.java.txt
          2 kB
          Yogesh Rao
        3. TestStringIntegerTransformerImpl.java.txt
          2 kB
          Yogesh Rao
        4. TransformerRegistry.java.txt
          9 kB
          Yogesh Rao
        5. TransformerRegistryTestCase.java.txt
          6 kB
          Yogesh Rao

        Activity

          People

            britter Benedikt Ritter
            yogu13 Yogesh Rao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: