public interface AsJpmsModule extends AsJarBuilder<AsJpmsModule>
Modifier and Type | Method and Description |
---|---|
static AsJpmsModule |
asJpmsModule()
asJpmsModule.
|
default AsJpmsModule |
autoRequiring()
Auto-require the JDK modules and classpaths.
|
AsJpmsModule |
autoRequiring(Iterable<PackageModuleMapper> mappers)
Note: if you also want the default
PackageModuleMapper (JdkModules and ClasspathModules )
then you must also invoke autoRequiring() or add them manually here |
AsJpmsModule |
autoRequiring(PackageModuleMapper... mappers)
Note: if you also want the default
PackageModuleMapper (JdkModules and ClasspathModules )
then you must also invoke autoRequiring() or add them manually here |
AsJpmsModule |
autoRequiringClasspath()
Auto-require from all available class-paths (inc.
|
AsJpmsModule |
autoRequiringJdkModules()
Auto-Require from the JDK's modules
|
AsJpmsModule |
exporting(Predicate<String> predicate,
String... onlyToModules)
exporting...
|
AsJpmsModule |
listingPackages()
listingPackages.
|
AsJpmsModule |
named(String moduleName) |
AsJpmsModule |
opening(Predicate<String> predicate,
String... onlyToModules)
opening.
|
default AsJpmsModule |
providingFromMetaInfServices()
Shorthand for
providingFromMetaInfServices(true) |
AsJpmsModule |
providingFromMetaInfServices(boolean enable)
This option enables support for scanning existing
META-INF/service/* and
adding any service implementations to the module-info 's provides
entries. |
AsJpmsModule |
requiring(String moduleName)
requiring.
|
AsJpmsModule |
requiring(String moduleName,
String version)
requiring.
|
AsJpmsModule |
using(Class<?> service)
using.
|
AsJpmsModule |
using(String service)
using.
|
AsJpmsModule |
versioned(String moduleVersion) |
disableValidation, launching, launching, mergingManifest, providing, providing, providing, sealing, withManifestHeader
attach
@Fluent static AsJpmsModule asJpmsModule()
asJpmsModule.
AsJpmsModule named(String moduleName)
AsJpmsModule versioned(String moduleVersion)
AsJpmsModule exporting(Predicate<String> predicate, String... onlyToModules)
exporting... Composition of predicates is more powerful than regex or globs
predicate
- a Predicate
object.onlyToModules
- a String
object.Pattern.asPredicate()
,
Predicate.and(Predicate)
,
Predicate.or(Predicate)
,
Predicate.negate()
,
Predicate.and(Predicate)
,
Predicate.or(Predicate)
,
Predicate.negate()
,
Predicate.and(Predicate)
,
Predicate.or(Predicate)
,
Predicate.negate()
AsJpmsModule opening(Predicate<String> predicate, String... onlyToModules)
opening.
AsJpmsModule requiring(String moduleName)
requiring.
moduleName
- a String
object.AsJpmsModule requiring(String moduleName, String version)
requiring.
AsJpmsModule using(Class<?> service)
using.
service
- a Class
object.AsJpmsModule using(String service)
using.
service
- a String
object.AsJpmsModule listingPackages()
listingPackages.
default AsJpmsModule autoRequiring()
Auto-require the JDK modules and classpaths.
autoRequiringClasspath()
,
autoRequiringJdkModules()
AsJpmsModule autoRequiringClasspath()
Auto-require from all available class-paths (inc. module-paths).
AsJpmsModule autoRequiringJdkModules()
Auto-Require from the JDK's modules
AsJpmsModule autoRequiring(PackageModuleMapper... mappers)
Note: if you also want the default PackageModuleMapper
(JdkModules
and ClasspathModules
)
then you must also invoke autoRequiring()
or add them manually here
mappers
- a PackageModuleMapper
object.autoRequiring()
AsJpmsModule autoRequiring(Iterable<PackageModuleMapper> mappers)
Note: if you also want the default PackageModuleMapper
(JdkModules
and ClasspathModules
)
then you must also invoke autoRequiring()
or add them manually here
mappers
- a Iterable
object.autoRequiring()
default AsJpmsModule providingFromMetaInfServices()
providingFromMetaInfServices(true)
providingFromMetaInfServices(boolean)
AsJpmsModule providingFromMetaInfServices(boolean enable)
This option enables support for scanning existing META-INF/service/*
and
adding any service implementations to the module-info
's provides
entries.
Use in conjunction with
ArchiveConstruction.sourcing(io.earcam.instrumental.archive.ArchiveResourceSource)
and e.g. ArchiveConstruction.contentFrom(java.io.File)
enable
- true to enable, false to disableCopyright © 2018 earcam. All rights reserved.