groovy
  1. groovy
  2. GROOVY-3091

Allow setting String based strategies on ObjectGraphBuilder[IdentityResolver|ReferenceResolver]

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6-rc-1, 1.5.8
    • Fix Version/s: 1.6-rc-2, 1.5.8, 1.7-beta-1
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      ObjectGraphBuilder allows a shortcut notation for its ClassNameResolver strategy

      def ogb = new ObjectGraphBuilder()
      ogb.classNameResolver = "com.acme"
      

      instead of

      def ogb = new ObjectGraphBuilder()
      ogb.classNameResolver = { name ->
         "com.acme." + name[0].toUpperCase() + name[1..-1]
      }
      

      The same shortcut syntax should be available for IdentityResolver and ReferenceResolver.

        Activity

          People

          • Assignee:
            Andres Almiray
            Reporter:
            Andres Almiray
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: