Class Module

java.lang.Object
org.eclipse.jetty.start.Module
All Implemented Interfaces:
Comparable<Module>

public class Module extends Object implements Comparable<Module>
Represents a Module metadata, as defined in Jetty.

A module consists of:

  • A set of jar files, directories and/or jar file patterns to be added to the classpath
  • A list of XML configuration files
  • Properties set either directly or via a file of properties
  • A set of modules names (or capability names) that this module depends on.
  • A set of capability names that this module provides (including it's own name).
  • Licence details for using the module
Modules are discovered in the ${jetty.home}/modules and ${jetty.home}/modules directories. A module may refer to non-discovered dynamic module in a subdirectory, using a property as part or all of the name. A module may be enabled, either directly by name or transiently via a dependency from another module by name or provided capability.