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 voidexportPackages(ModuleInfoBuilder builder, Analyzer analyzer, Packages contained, Set<Descriptors.PackageRef> bcpEntries) private StringgetModuleName(Analyzer analyzer, Jar jar, Parameters moduleInfoOptions) private voidmainClass(ModuleInfoBuilder builder, Analyzer analyzer) private Stringprivate ModuleInfoBuildernameAccessAndVersion(Map.Entry<String, Attrs> instruction, Parameters requireCapability, Analyzer analyzer) private voidopenPackages(ModuleInfoBuilder builder, Packages contained) private voidpackages(ModuleInfoBuilder builder, Analyzer analyzer) private voidrequires(ModuleInfoBuilder builder, Analyzer analyzer, Map.Entry<String, Attrs> instruction, Packages index, Parameters moduleInfoOptions, Set<Descriptors.PackageRef> bcpEntries) private voidserviceLoaderProviders(ModuleInfoBuilder builder, Analyzer analyzer, Parameters provideCapabilities, Set<Descriptors.PackageRef> bcpEntries) private voidserviceLoaderUses(ModuleInfoBuilder builder, Analyzer analyzer, Parameters requireCapabilities, Set<Descriptors.PackageRef> bcpEntries) voidThis 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, waitMethods 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:VerifierPluginThis 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:
verifyin interfaceVerifierPlugin- Parameters:
analyzer-- 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
-