public static interface ModuleSpec.Builder
Modifier and Type | Method | Description |
---|---|---|
ModuleSpec.Builder |
addDependency(DependencySpec dependencySpec) |
Add a dependency specification.
|
ModuleSpec.Builder |
addProperty(String name,
String value) |
Add a property to this module specification.
|
ModuleSpec.Builder |
addResourceRoot(ResourceLoaderSpec resourceLoader) |
Add a local resource root, from which this module will load class definitions and resources.
|
ModuleSpec |
create() |
Create the module specification from this builder.
|
default ModuleIdentifier |
getIdentifier() |
Deprecated.
use
getName() instead |
String |
getName() |
Get the name of the module being defined by this builder.
|
ModuleSpec.Builder |
setAssertionSetting(AssertionSetting assertionSetting) |
Set the default assertion setting for this module.
|
ModuleSpec.Builder |
setClassFileTransformer(ClassFileTransformer classFileTransformer) |
Set the class file transformer to use for this module.
|
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 |
setMainClass(String mainClass) |
Set the main class for this module, or
null for none. |
ModuleSpec.Builder |
setModuleClassLoaderFactory(ModuleClassLoaderFactory moduleClassLoaderFactory) |
Set the module class loader factory to use to create the module class loader for this module.
|
ModuleSpec.Builder |
setPermissionCollection(PermissionCollection permissionCollection) |
Set the permission collection for this module specification.
|
ModuleSpec.Builder |
setVersion(Version version) |
Set the version for this module specification, or
null to set no version for this module. |
ModuleSpec.Builder setMainClass(String mainClass)
null
for none.mainClass
- the main class nameModuleSpec.Builder setAssertionSetting(AssertionSetting assertionSetting)
assertionSetting
- the assertion settingModuleSpec.Builder addDependency(DependencySpec dependencySpec)
dependencySpec
- the dependency specificationModuleSpec.Builder addResourceRoot(ResourceLoaderSpec resourceLoader)
resourceLoader
- the resource loader for the rootModuleSpec create()
@Deprecated default ModuleIdentifier getIdentifier()
getName()
insteadString getName()
ModuleSpec.Builder setFallbackLoader(LocalLoader fallbackLoader)
fallbackLoader
- the fall-back loaderModuleSpec.Builder setModuleClassLoaderFactory(ModuleClassLoaderFactory moduleClassLoaderFactory)
moduleClassLoaderFactory
- the factoryModuleSpec.Builder setClassFileTransformer(ClassFileTransformer classFileTransformer)
classFileTransformer
- the class file transformerModuleSpec.Builder addProperty(String name, String value)
name
- the property namevalue
- the property valueModuleSpec.Builder setPermissionCollection(PermissionCollection permissionCollection)
AllPermission
is assumed.permissionCollection
- the permission collectionModuleSpec.Builder setVersion(Version version)
null
to set no version for this module.version
- the module versionCopyright © 2022 JBoss by Red Hat. All rights reserved.