Package org.eclipse.jetty.start
Class Module
java.lang.Object
org.eclipse.jetty.start.Module
- All Implemented Interfaces:
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
${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.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
boolean
boolean
void
expandDependencies
(Props props) getAfter()
getFiles()
getJPMS()
getLibs()
getName()
Deprecated.getTags()
getXmls()
boolean
boolean
int
hashCode()
boolean
boolean
static boolean
isConditionalDependency
(String depends) boolean
Indicates a module that is dynamic in natureboolean
boolean
boolean
static String
normalizeModuleName
(String name) void
void
setSkipFilesValidation
(boolean skipFilesValidation) toString()
void
writeIniSection
(BufferedWriter writer, Props props)
-
Constructor Details
-
Module
- Throws:
IOException
-
-
Method Details
-
isConditionalDependency
-
normalizeModuleName
-
getName
-
equals
-
expandDependencies
-
getDefaultConfig
-
getIniTemplate
-
getFiles
-
isSkipFilesValidation
public boolean isSkipFilesValidation() -
getJvmArgs
-
getLibs
-
getLicense
-
getXmls
-
getJPMS
-
getVersion
-
hasDefaultConfig
public boolean hasDefaultConfig() -
hasIniTemplate
public boolean hasIniTemplate() -
hashCode
public int hashCode() -
hasLicense
public boolean hasLicense() -
isDynamic
public boolean isDynamic()Indicates a module that is dynamic in nature- Returns:
- a module where the name is not in the top level of the modules directory
-
hasFiles
-
process
- Throws:
FileNotFoundException
IOException
-
clearTransitiveEnable
public boolean clearTransitiveEnable() -
setSkipFilesValidation
public void setSkipFilesValidation(boolean skipFilesValidation) -
toString
-
getDepends
-
getDeprecated
-
getProvides
-
getBefore
-
getAfter
-
getOptional
Deprecated.usegetAfter()
instead- Returns:
- the module names in the [after] section
-
getDescription
-
getTags
-
getPrimaryTag
-
isEnabled
public boolean isEnabled() -
getEnableSources
-
enable
- Parameters:
source
- String describing where the module was enabled fromtransitive
- True if the enable is transitive- Returns:
- true if the module was not previously enabled
-
isTransitive
public boolean isTransitive() -
writeIniSection
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Module>
-
getAfter()
instead