JavaScript is disabled on your browser.
Package: groovy.lang

[Java] Class ExpandoMetaClassCreationHandle


  • public class ExpandoMetaClassCreationHandle
    extends MetaClassRegistry.MetaClassCreationHandle 

    A handle for the MetaClassRegistry that changes all classes loaded into the Grails VM to use ExpandoMetaClass instances

    The handle should be registered with the Groovy runtime before Groovy loads, for example in your main method. GroovySystem.metaClassRegistry.metaClassCreationHandle = new ExpandoMetaClassCreationHandle()

    See Also:
    MetaClassRegistry
    groovy.lang.MetaClassRegistry.MetaClassCreationHandle
    MetaClassRegistryImpl.setMetaClassCreationHandle
    Since:
    1.5

    • Method Detail

      • public static void disable()

      • public static void enable()

        Enables the ExpandoMetaClassCreationHandle with the registry ExpandoMetaClassCreationHandle.enable();

      • public void registerModifiedMetaClass(ExpandoMetaClass emc)

        Registers a modified ExpandoMetaClass with the creation handle

        Parameters:
        emc - The EMC

Copyright © 2003-2025 The Apache Software Foundation. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /