Module specification which is used by a ModuleLoader to define new modules.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | ModuleSpec.AliasBuilder
A builder for new alias module specifications. |
| public static interface | ModuleSpec.Builder
A builder for new concrete module specifications. |
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static ModuleSpec. | Returns: the builderthe module identifier moduleIdentifier)
Deprecated
Use
Get a builder for a new module specification.
build(String) instead.
|
| public static ModuleSpec. | |
| pack-priv static ModuleSpec. | |
| public static ModuleSpec. | Returns: the builderthe module identifier moduleIdentifier, final ModuleIdentifier the alias target identifier aliasTarget)
Deprecated
Use
Get a builder for a new module alias specification.
buildAlias(String, String) instead.
|
| public static ModuleSpec. | Returns: the builderthe module name name, final String the alias target name aliasName)Get a builder for a new module alias specification. |
| public ModuleIdentifier | Returns: the module identifier
Deprecated
Use
Get the module identifier for the module which is specified by this object.
getName() instead.
|
| public String | Returns: the module nameGet the module name for the module which is specified by this object. |
| name | back to summary |
|---|---|
| private final String name | |
| ModuleSpec | back to summary |
|---|---|
| pack-priv ModuleSpec(final String name) | |
| build | back to summary |
|---|---|
| public static ModuleSpec. Deprecated Use Get a builder for a new module specification.
| |
| build | back to summary |
|---|---|
| public static ModuleSpec. Get a builder for a new module specification.
| |
| build | back to summary |
|---|---|
| pack-priv static ModuleSpec. | |
| buildAlias | back to summary |
|---|---|
| public static ModuleSpec. Deprecated Use Get a builder for a new module alias specification.
| |
| buildAlias | back to summary |
|---|---|
| public static ModuleSpec. Get a builder for a new module alias specification.
| |
| getModuleIdentifier | back to summary |
|---|---|
| public ModuleIdentifier getModuleIdentifier()
Deprecated Use Get the module identifier for the module which is specified by this object.
| |
| getName | back to summary |
|---|---|
| public String getName() Get the module name for the module which is specified by this object.
| |
| Modifier and Type | Method and Description |
|---|---|
| public ModuleSpec | |
| public String | |
| public default ModuleIdentifier | Returns: the module identifier
Deprecated
Use
Get the identifier of the module being referenced by this builder.
getAliasName() instead.
|
| public default ModuleIdentifier | Returns: the module identifier
Deprecated
Use
Get the identifier of the module being defined by this builder.
getName() instead.
|
| public String |
| create | back to summary |
|---|---|
| public ModuleSpec create() Create the module specification from this builder.
| |
| getAliasName | back to summary |
|---|---|
| public String getAliasName() Get the name of the module being referenced by this builder.
| |
| getAliasTarget | back to summary |
|---|---|
| public default ModuleIdentifier getAliasTarget()
Deprecated Use Get the identifier of the module being referenced by this builder.
| |
| getIdentifier | back to summary |
|---|---|
| public default ModuleIdentifier getIdentifier()
Deprecated Use Get the identifier of the module being defined by this builder.
| |
| getName | back to summary |
|---|---|
| public String getName() Get the name of the module being defined by this builder.
| |
| Modifier and Type | Method and Description |
|---|---|
| public ModuleSpec. | Returns: this builderthe dependency specification dependencySpec)Add a dependency specification. |
| public ModuleSpec. | Returns: this builderthe property name name, String the property value value)Add a property to this module specification. |
| public ModuleSpec. | Returns: this builderthe service type name (must not be serviceTypeName, String null)the service implementation class name (must not be serviceImplClassName)null)Declare that this module provides a service with the given type name with the implementation class with the given class name. |
| public ModuleSpec. | Returns: this builderthe resource loader for the root resourceLoader)Add a local resource root, from which this module will load class definitions and resources. |
| public ModuleSpec | |
| public default ModuleIdentifier | Returns: the module identifier
Deprecated
use
Get the identifier of the module being defined by this builder.
getName() instead
|
| public String | |
| public Version | Returns: the currently-set version, ornull if none was setGet the version for this module specification, or |
| public ModuleSpec. | Returns: this builderthe assertion setting assertionSetting)Set the default assertion setting for this module. |
| public ModuleSpec. | Returns: this builderthe class file transformer classFileTransformer)
Deprecated
Use
Set the class file transformer to use for this module.
setClassFileTransformer(ClassTransformer) instead.
|
| public ModuleSpec. | Returns: this builderthe class file transformer (must not be transformer)null)Set the class file transformer function to use for this module. |
| public ModuleSpec. | Returns: this builderthe fall-back loader fallbackLoader)Sets a "fall-back" loader that will attempt to load a class if all other mechanisms are unsuccessful. |
| public ModuleSpec. | Returns: this builderthe main class name mainClass)Set the main class for this module, or |
| public ModuleSpec. | Returns: this builderthe factory moduleClassLoaderFactory)Set the module class loader factory to use to create the module class loader for this module. |
| public ModuleSpec. | Returns: this builderthe permission collection permissionCollection)Set the permission collection for this module specification. |
| public ModuleSpec. | Returns: this builderthe module version version)Set the version for this module specification, or |
| addDependency | back to summary |
|---|---|
| public ModuleSpec. Add a dependency specification.
| |
| addProperty | back to summary |
|---|---|
| public ModuleSpec. Add a property to this module specification.
| |
| addProvide | back to summary |
|---|---|
| public ModuleSpec. Declare that this module provides a service with the given type name with the implementation class with the given class name.
| |
| addResourceRoot | back to summary |
|---|---|
| public ModuleSpec. Add a local resource root, from which this module will load class definitions and resources.
| |
| create | back to summary |
|---|---|
| public ModuleSpec create() Create the module specification from this builder.
| |
| getIdentifier | back to summary |
|---|---|
| public default ModuleIdentifier getIdentifier()
Deprecated use Get the identifier of the module being defined by this builder.
| |
| getName | back to summary |
|---|---|
| public String getName() Get the name of the module being defined by this builder.
| |
| getVersion | back to summary |
|---|---|
| public Version getVersion() Get the version for this module specification, or
| |
| setAssertionSetting | back to summary |
|---|---|
| public ModuleSpec. Set the default assertion setting for this module.
| |
| setClassFileTransformer | back to summary |
|---|---|
| public ModuleSpec. Deprecated Use Set the class file transformer to use for this module.
| |
| setClassFileTransformer | back to summary |
|---|---|
| public ModuleSpec. Set the class file transformer function to use for this module. If the given function returns
| |
| setFallbackLoader | back to summary |
|---|---|
| public ModuleSpec. Sets a "fall-back" loader that will attempt to load a class if all other mechanisms are unsuccessful.
| |
| setMainClass | back to summary |
|---|---|
| public ModuleSpec. Set the main class for this module, or
| |
| setModuleClassLoaderFactory | back to summary |
|---|---|
| public ModuleSpec. Set the module class loader factory to use to create the module class loader for this module.
| |
| setPermissionCollection | back to summary |
|---|---|
| public ModuleSpec. Set the permission collection for this module specification. If none is given, a collection implying
| |
| setVersion | back to summary |
|---|---|
| public ModuleSpec. Set the version for this module specification, or
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| implClassName | back to summary |
|---|---|
| private final String implClassName | |
| serviceTypeName | back to summary |
|---|---|
| private final String serviceTypeName | |
| ServiceInfo | back to summary |
|---|---|
| pack-priv ServiceInfo(final String serviceTypeName, final String implClassName) | |
| getImplClassName | back to summary |
|---|---|
| pack-priv String getImplClassName() | |
| getServiceTypeName | back to summary |
|---|---|
| pack-priv String getServiceTypeName() | |