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

Custom Metaclass creation handler

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1-rc-3
    • 1.1-beta-2
    • None
    • None
    • Patch

    Description

      Hi,

      My implementation needs to install a custom metaclass creation handler. The previous installing code has been removed from groovy.lang.GroovySystem (no ObjectMetaClass instantiation there).

      I came up with the solution by having MetaClassRegistryImpl to lookup for CustomMetaClassCreationHandle and try to instantiate it, if failed MetaClassRegistryImpl will use the default MetaClassCreationHandle.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            graemerocher Graeme Rocher
            chanwit Chanwit Kaewkasi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment