ModuleDefinition implementation that picks up most of the module
properties from the manifest file of the jar, as baked in by
the hk2-maven-plugin.
| Modifier and Type | Field and Description |
|---|---|
| protected final List | |
| protected final List | |
| private static final Manifest | |
| private final String | |
| private final String | |
| private static final Logger | |
| protected final Attributes | mainAttributes
Main attributes section of the manifest. |
| private final Manifest | |
| private final ModuleMetadata | metadata
Metadata that works like index. |
| private final String | |
| private final String[] | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | decorateClassPath(String classpathElement)
Extension point to manipulate the classpath element before it's parsed. |
| public ModuleDependency[] | Returns: the ModuleDependencyImplements com. Returns the list of module dependencies |
| public String | Returns: theImportPolicy implementation class nameImplements com. Returns the class name implementing the
|
| public String | Returns: theLifecyclePolicy implementation class nameImplements com. Returns the class name implementing the
|
| public URI[] | Returns: the list of URI locations for this moduleImplements com. Returns the list of URI locations forming the classpath for this module. |
| public Manifest | Returns: never null.Implements com. Returns the manifest file from the module's implementation jar file |
| public ModuleMetadata | getMetadata()
Implements com. Gets the metadata that describes various components and services in this module. |
| public String | Returns: the nameImplements com. Returns the name of the module |
| public String[] | Returns: the list of public packages or classesImplements com. Returns the list of classes and packages that have been designated as public interfaces of this module. |
| public String | Returns: the module's versionImplements com. Returns the module's version |
| protected void | parseAttributes(Attributes
Main attributes of the manifest. Always non-null. attr)Extensibility point to parse more information from Manifest attributes. |
| protected void | parseClassPath(Attributes attr, URI baseURI)
Parses Class-Path from manifest attributes and updates URI list. |
| private boolean | testClassPath(URI uri)
Optional error diagnostics performed during the development time to check if the URL pointed by the path actually exists. |
| public String |
| classPath | back to summary |
|---|---|
| protected final List<URI> classPath | |
| dependencies | back to summary |
|---|---|
| protected final List<ModuleDependency> dependencies | |
| EMPTY_MANIFEST | back to summary |
|---|---|
| private static final Manifest EMPTY_MANIFEST | |
| importPolicy | back to summary |
|---|---|
| private final String importPolicy | |
| lifecyclePolicy | back to summary |
|---|---|
| private final String lifecyclePolicy | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| mainAttributes | back to summary |
|---|---|
| protected final Attributes mainAttributes Main attributes section of the manifest. Always non-null. | |
| manifest | back to summary |
|---|---|
| private final Manifest manifest | |
| metadata | back to summary |
|---|---|
| private final ModuleMetadata metadata Metadata that works like index. | |
| name | back to summary |
|---|---|
| private final String name | |
| publicPkgs | back to summary |
|---|---|
| private final String[] publicPkgs | |
| version | back to summary |
|---|---|
| private final String version | |
| DefaultModuleDefinition | back to summary |
|---|---|
| public DefaultModuleDefinition(File location) throws IOException TO DO need to support a URI constructor | |
| DefaultModuleDefinition | back to summary |
|---|---|
| public DefaultModuleDefinition(File location, Attributes attr) throws IOException | |
| decorateClassPath | back to summary |
|---|---|
| protected String decorateClassPath(String classpathElement) Extension point to manipulate the classpath element before it's parsed.
| |
| getDependencies | back to summary |
|---|---|
| public ModuleDependency[] getDependencies() Implements com. Returns the list of module dependencies
| |
| getImportPolicyClassName | back to summary |
|---|---|
| public String getImportPolicyClassName() Implements com. Returns the class name implementing the
| |
| getLifecyclePolicyClassName | back to summary |
|---|---|
| public String getLifecyclePolicyClassName() Implements com. Returns the class name implementing the
| |
| getLocations | back to summary |
|---|---|
| public URI[] getLocations() Implements com. Returns the list of URI locations forming the classpath for this module.
| |
| getManifest | back to summary |
|---|---|
| public Manifest getManifest() Implements com. Returns the manifest file from the module's implementation jar file
| |
| getMetadata | back to summary |
|---|---|
| public ModuleMetadata getMetadata() Implements com. Doc from com. Gets the metadata that describes various components and services in this module. | |
| getName | back to summary |
|---|---|
| public String getName() Implements com. Returns the name of the module
| |
| getPublicInterfaces | back to summary |
|---|---|
| public String[] getPublicInterfaces() Implements com. Returns the list of classes and packages that have been designated as public interfaces of this module.
| |
| getVersion | back to summary |
|---|---|
| public String getVersion() Implements com. Returns the module's version
| |
| parseAttributes | back to summary |
|---|---|
| protected void parseAttributes(Attributes attr) Extensibility point to parse more information from Manifest attributes.
| |
| parseClassPath | back to summary |
|---|---|
| protected void parseClassPath(Attributes attr, URI baseURI) throws IOException Parses Class-Path from manifest attributes and updates URI list. | |
| testClassPath | back to summary |
|---|---|
| private boolean testClassPath(URI uri) Optional error diagnostics performed during the development time to check if the URL pointed by the path actually exists. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Assists debugging. | |