groovy

Custom Metaclass creation handler

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1-rc-3
  • Fix Version/s: 1.1-beta-2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    1

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.

Activity

Hide
Graeme Rocher added a comment -

Patch applied

Show
Graeme Rocher added a comment - Patch applied

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: