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.
Constructor and description |
---|
ExtensionModuleRegistry
() |
Type | Name and description |
---|---|
void |
addModule(ExtensionModule module) |
ExtensionModule |
getModule(String moduleName) |
List<ExtensionModule> |
getModules() |
boolean |
hasModule(String moduleName) |
void |
removeModule(ExtensionModule module) |
Copyright © 2003-2014 The Codehaus. All rights reserved.