Package org.codehaus.groovy.runtime.m12n
Class ExtensionModuleRegistry
java.lang.Object
org.codehaus.groovy.runtime.m12n.ExtensionModuleRegistry
public class ExtensionModuleRegistry
extends java.lang.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.
- Since:
- 2.0.0
- 
Constructor SummaryConstructors Constructor Description ExtensionModuleRegistry()
- 
Method SummaryModifier and Type Method Description voidaddModule(ExtensionModule module)ExtensionModulegetModule(java.lang.String moduleName)java.util.List<ExtensionModule>getModules()booleanhasModule(java.lang.String moduleName)voidremoveModule(ExtensionModule module)Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
ExtensionModuleRegistrypublic ExtensionModuleRegistry()
 
- 
- 
Method Details- 
addModule
- 
removeModule
- 
getModules
- 
hasModulepublic boolean hasModule(java.lang.String moduleName)
- 
getModule
 
-