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

Annotation @MetaClass to setup MetaClass declarative

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.5.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      An Annotation that tells the compiler what MetaClass to set for this a class.

      @MetaClass(ExpandoMetaClass)
      public class ExtensibleService extends BaseService
      {
      ...
      }

      Perhaps for this case a specialised Annotation would do the Job better:

      @Expando(allowChangesAfterInit = true)
      public class ExtensibleService extends BaseService
      {
      ...
      }

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              jogi Jörg Gottschling
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: