groovy
  1. groovy
  2. GROOVY-2439

Annotation @MetaClass to setup MetaClass declarative

    Details

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

      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
      {
      ...
      }

        Activity

        Hide
        Guillaume Laforge added a comment -

        Interesting idea to discuss.

        Show
        Guillaume Laforge added a comment - Interesting idea to discuss.
        Hide
        blackdrag blackdrag added a comment -

        The MOP2 will not contain custom meta classes anymore

        Show
        blackdrag blackdrag added a comment - The MOP2 will not contain custom meta classes anymore

          People

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

            Dates

            • Created:
              Updated:
              Resolved: