Groovy 1.7.5

groovy.lang
[Java] Interface MutableMetaClass

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

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

Authors:
Graeme Rocher
See Also:
MetaClassImpl
MetaClass
Since:
1.5


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