Package: org.codehaus.groovy.runtime.m12n

## [Java] Class PropertiesModuleFactory

- org.codehaus.groovy.runtime.m12n.PropertiesModuleFactory

-     public abstract class PropertiesModuleFactory
      extends Object

  This is the base class for classes responsible for creating modules using properties.

  Since:
    2.0.0

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static String` | `MODULE_NAME_KEY` | Property key in META-INF configuration file for specifying the module name.
    `static String` | `MODULE_VERSION_KEY` | Property key in META-INF configuration file for specifying the module version.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public abstract ExtensionModule` | `newModule(Properties properties, ClassLoader classLoader)` Creates a new extension module from the given properties and class loader.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### public static final String MODULE_NAME_KEY

      Property key in META-INF configuration file for specifying the module name.

    - #### public static final String MODULE_VERSION_KEY

      Property key in META-INF configuration file for specifying the module version.

  - ### Method Detail

    - #### public abstract ExtensionModule newModule(Properties properties, ClassLoader classLoader)

      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 properties
        `classLoader` - the class loader to use for loading extension classes
      Returns:
        a new extension module