Groovy 2.2.1

org.codehaus.groovy.runtime.m12n
[Java] Class ExtensionModuleRegistry

java.lang.Object
  org.codehaus.groovy.runtime.m12n.ExtensionModuleRegistry

public class ExtensionModuleRegistry
extends Object

The extension method registry is responsible for collecting methods (or static methods) which are added to existing classes and may be called like regular methods.

In previous Groovy versions, such methods could only be defined in a single class called DefaultGroovyMethods for instance methods, and DefaultGroovyStaticMethods for static methods.

Authors:
Cedric Champeau
Since:
2.0.0


Constructor Summary
ExtensionModuleRegistry()

 
Method Summary
void addModule(ExtensionModule module)

ExtensionModule getModule(String moduleName)

List getModules()

boolean hasModule(String moduleName)

void removeModule(ExtensionModule module)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

ExtensionModuleRegistry

public ExtensionModuleRegistry()


 
Method Detail

addModule

public void addModule(ExtensionModule module)


getModule

public ExtensionModule getModule(String moduleName)


getModules

public List getModules()


hasModule

public boolean hasModule(String moduleName)


removeModule

public void removeModule(ExtensionModule module)


 

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