Package org.codehaus.groovy.runtime.m12n
Class PropertiesModuleFactory
java.lang.Object
org.codehaus.groovy.runtime.m12n.PropertiesModuleFactory
- Direct Known Subclasses:
StandardPropertiesModuleFactory
This is the base class for classes responsible for creating modules
using properties.
- Since:
- 2.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ExtensionModulenewModule(Properties properties, ClassLoader classLoader) Creates a new extension module from the given properties and class loader.
-
Field Details
-
MODULE_NAME_KEY
Property key in META-INF configuration file for specifying the module name.- See Also:
-
MODULE_VERSION_KEY
Property key in META-INF configuration file for specifying the module version.- See Also:
-
-
Constructor Details
-
PropertiesModuleFactory
public PropertiesModuleFactory()
-
-
Method Details
-
newModule
Creates a new extension module from the given properties and class loader. Implementations are responsible for parsing the properties and creating an appropriate module instance.- Parameters:
properties- the module metadata propertiesclassLoader- the class loader to use for loading extension classes- Returns:
- a new extension module
-