public class Module extends Object implements Comparable<Module>
A module consists of:
${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.public Module(BaseHome basehome, Path path) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public String getName()
public void expandDependencies(Props props)
public boolean isSkipFilesValidation()
public Version getVersion()
public boolean hasDefaultConfig()
public boolean hasIniTemplate()
public boolean hasLicense()
public boolean isDynamic()
public void process(BaseHome basehome) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public boolean clearTransitiveEnable()
public void setSkipFilesValidation(boolean skipFilesValidation)
public String getPrimaryTag()
public boolean isEnabled()
public boolean enable(String source, boolean transitive)
source
- String describing where the module was enabled fromtransitive
- True if the enable is transitivepublic boolean isTransitive()
public void writeIniSection(BufferedWriter writer, Props props)
public int compareTo(Module m)
compareTo
in interface Comparable<Module>
Copyright © 1995–2017 Webtide. All rights reserved.