Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5646

Allow customization of @Singleton's instance getter name

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.2, 2.1.0-beta-1
    • None
    • None

    Description

      Baruch sent us a pull request:
      "Added support to custom property name in @Singleton AST transformation"

      Instead of only supporting getInstance() method to get the singleton's lonely instance, we can customize the name of the property/getter to a name of our choice.

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            guillaume Guillaume Sauthier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: