Package aQute.bnd.plugin.jpms
Class JPMSModuleInfoPlugin
java.lang.Object
aQute.bnd.plugin.jpms.JPMSModuleInfoPlugin
- All Implemented Interfaces:
VerifierPlugin
A plugin to generate a module-info class from analyzer metadata and bundle
annotations.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
exportPackages
(ModuleInfoBuilder builder, Analyzer analyzer, Packages contained, Set<Descriptors.PackageRef> bcpEntries) private String
getModuleName
(Analyzer analyzer, Jar jar, Parameters moduleInfoOptions) private void
mainClass
(ModuleInfoBuilder builder, Analyzer analyzer) private String
private ModuleInfoBuilder
nameAccessAndVersion
(Map.Entry<String, Attrs> instruction, Parameters requireCapability, Analyzer analyzer) private void
openPackages
(ModuleInfoBuilder builder, Packages contained) private void
packages
(ModuleInfoBuilder builder, Analyzer analyzer) private void
requires
(ModuleInfoBuilder builder, Analyzer analyzer, Map.Entry<String, Attrs> instruction, Packages index, Parameters moduleInfoOptions, Set<Descriptors.PackageRef> bcpEntries) private void
serviceLoaderProviders
(ModuleInfoBuilder builder, Analyzer analyzer, Parameters provideCapabilities, Set<Descriptors.PackageRef> bcpEntries) private void
serviceLoaderUses
(ModuleInfoBuilder builder, Analyzer analyzer, Parameters requireCapabilities, Set<Descriptors.PackageRef> bcpEntries) void
This plugin is called after the manifest generation and after the jar is fully populated with resources.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface aQute.bnd.service.verifier.VerifierPlugin
ordering
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
mangledModuleName
-
DEFAULT_MODULE_EE
-
INTERNAL_MODULE_DIRECTIVE
- See Also:
-
-
Constructor Details
-
JPMSModuleInfoPlugin
public JPMSModuleInfoPlugin()
-
-
Method Details
-
verify
Description copied from interface:VerifierPlugin
This plugin is called after the manifest generation and after the jar is fully populated with resources. The plugin is intended to verify details of the jar and manifest.- Specified by:
verify
in interfaceVerifierPlugin
- Throws:
Exception
-
getModuleName
private String getModuleName(Analyzer analyzer, Jar jar, Parameters moduleInfoOptions) throws Exception - Throws:
Exception
-
name
-
packages
-
exportPackages
private void exportPackages(ModuleInfoBuilder builder, Analyzer analyzer, Packages contained, Set<Descriptors.PackageRef> bcpEntries) -
mainClass
-
nameAccessAndVersion
private ModuleInfoBuilder nameAccessAndVersion(Map.Entry<String, Attrs> instruction, Parameters requireCapability, Analyzer analyzer) -
openPackages
-
requires
private void requires(ModuleInfoBuilder builder, Analyzer analyzer, Map.Entry<String, Attrs> instruction, Packages index, Parameters moduleInfoOptions, Set<Descriptors.PackageRef> bcpEntries) throws Exception- Throws:
Exception
-
serviceLoaderProviders
private void serviceLoaderProviders(ModuleInfoBuilder builder, Analyzer analyzer, Parameters provideCapabilities, Set<Descriptors.PackageRef> bcpEntries) -
serviceLoaderUses
private void serviceLoaderUses(ModuleInfoBuilder builder, Analyzer analyzer, Parameters requireCapabilities, Set<Descriptors.PackageRef> bcpEntries) -
setFactory
-
mapFactory
-