Interface ModulePathElement
- All Superinterfaces:
CodeContribution, Resource
Marker interface for code contributions that contain a module descriptor and can be placed on the module-path (--module-path) during compilation or run-time.
A resource implementing this interface explicitly declares itself as a
named module. Even without this marker, a CodeContribution can be
detected as modular, see CodeContribution.isModular().
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanChecks whether this code contribution is modular.Methods inherited from interface CodeContribution
moduleName, toPathMethods inherited from interface Resource
asOf, asOfLocalized, cleanup, isNewerThan, name, type
-
Method Details
-
isModular
Description copied from interface:CodeContributionChecks whether this code contribution is modular. This works for both JAR files and directories. Both are considered as modular if they contain amodule-info.class. JARs are also considered as modular if they have anAutomatic-Module-Nameset in theirMANIFEST.MF.- Specified by:
isModularin interfaceCodeContribution- Returns:
- true, if the contribution is modular
-