Issue Details (XML | Word | Printable)

Key: GROOVY-1850
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Graeme Rocher
Reporter: Chanwit Kaewkasi
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

Custom Metaclass creation handler

Created: 22/Apr/07 10:45 AM   Updated: 04/Jun/07 06:40 AM
Component/s: None
Affects Version/s: 1.1-rc-3
Fix Version/s: 1.1-beta-2

Time Tracking:
Not Specified

File Attachments: 1. Text File custom_mcch.patch (2 kB)



 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Graeme Rocher added a comment - 04/Jun/07 06:40 AM
Patch applied