ModuleSpec.Builder |
ModuleSpec.Builder.addDependency(DependencySpec dependencySpec) |
Add a dependency specification.
|
ModuleSpec.Builder |
ModuleSpec.Builder.addProperty(java.lang.String name,
java.lang.String value) |
Add a property to this module specification.
|
ModuleSpec.Builder |
ModuleSpec.Builder.addProvide(java.lang.String serviceTypeName,
java.lang.String serviceImplClassName) |
Declare that this module provides a service with the given type name with the implementation class with
the given class name.
|
ModuleSpec.Builder |
ModuleSpec.Builder.addResourceRoot(ResourceLoaderSpec resourceLoader) |
Add a local resource root, from which this module will load class definitions and resources.
|
static ModuleSpec.Builder |
ModuleSpec.build(java.lang.String name) |
Get a builder for a new module specification.
|
static ModuleSpec.Builder |
ModuleSpec.build(ModuleIdentifier moduleIdentifier) |
Deprecated, for removal: This API element is subject to removal in a future version.
|
ModuleSpec.Builder |
ModuleSpec.Builder.setAssertionSetting(AssertionSetting assertionSetting) |
Set the default assertion setting for this module.
|
ModuleSpec.Builder |
ModuleSpec.Builder.setClassFileTransformer(java.lang.instrument.ClassFileTransformer classFileTransformer) |
Deprecated.
|
ModuleSpec.Builder |
ModuleSpec.Builder.setClassFileTransformer(ClassTransformer transformer) |
Set the class file transformer function to use for this module.
|
ModuleSpec.Builder |
ModuleSpec.Builder.setFallbackLoader(LocalLoader fallbackLoader) |
Sets a "fall-back" loader that will attempt to load a class if all other mechanisms
are unsuccessful.
|
ModuleSpec.Builder |
ModuleSpec.Builder.setMainClass(java.lang.String mainClass) |
Set the main class for this module, or null for none.
|
ModuleSpec.Builder |
ModuleSpec.Builder.setModuleClassLoaderFactory(ModuleClassLoaderFactory moduleClassLoaderFactory) |
Set the module class loader factory to use to create the module class loader for this module.
|
ModuleSpec.Builder |
ModuleSpec.Builder.setPermissionCollection(java.security.PermissionCollection permissionCollection) |
Set the permission collection for this module specification.
|
ModuleSpec.Builder |
ModuleSpec.Builder.setVersion(Version version) |
Set the version for this module specification, or null to set no version for this module.
|