Groovy 1.7.2

groovy.lang
Interface MutableMetaClass

groovy.lang.MetaObjectProtocol
  groovy.lang.MetaClass
      groovy.lang.MutableMetaClass
All Superinterfaces:
MetaObjectProtocol, MetaClass

public interface MutableMetaClass
extends MetaClass

An interface that defines methods that implementers of mutable Meta classes should specify. It provides operations to perform mutations on the MetaClass instance.

Whether a MetaClass allows mutation is up to the MetaClass itself and considerations of Thread safety need to be taken into account when making a MetaClass mutable

The default implementation allows mutation of MetaClass instances before initialisation (before the initialize() method is called) but not after, thus ensuring Thread safety once a MetaClass has been constructed and placed in the registry

see:
MetaClassImpl
see:
MetaClass
author:
Graeme Rocher
since:
1.5


Copyright © 2003-2010 The Codehaus. All rights reserved.