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

Custom Metaclass creation handler

    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

        1. custom_mcch.patch
          2 kB
          Chanwit Kaewkasi

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: