The implementation does not cache any data - everything is recalculated for each call. Callers are therefore encouraged to either supply their own caching, or minimize the calls to methods of this class.
| Modifier and Type | Field and Description |
|---|---|
| private final ClassLoader | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Manifest | |
| public ModuleDependency[] | getDependencies()
Implements com. Returns the list of this module's dependencies. |
| public String | getImportPolicyClassName()
Implements com. Returns the import policy class name. |
| public String | getLifecyclePolicyClassName()
Implements com. Returns the lifecycle policy class name. |
| public URI[] | getLocations()
Implements com. A Module is implemented by one to many jar files. |
| public Manifest | getManifest()
Implements com. Returns the manifest file for the main module jar file |
| public ModuleMetadata | getMetadata()
Implements com. Gets the metadata that describes various components and services in this module. |
| public String | getName()
Implements com. Returns the module name, usually this is the same name as the jar file name containing the module's implementation. |
| public String[] | getPublicInterfaces()
Implements com. Returns a list of public interfaces for this module. |
| public String | getVersion()
Implements com. Returns the version of this module's implementation |
| private static boolean | |
| private static boolean | |
| private static byte[] |
| classLoader | back to summary |
|---|---|
| private final ClassLoader classLoader | |
| mappings | back to summary |
|---|---|
| private final List<ManifestProxy. | |
| ProxyModuleDefinition | back to summary |
|---|---|
| public ProxyModuleDefinition(ClassLoader classLoader) throws IOException | |
| ProxyModuleDefinition | back to summary |
|---|---|
| public ProxyModuleDefinition(ClassLoader classLoader, List<ManifestProxy. | |
| generate | back to summary |
|---|---|
| protected Manifest generate(ModuleMetadata metadata) | |
| getDependencies | back to summary |
|---|---|
| public ModuleDependency[] getDependencies() Implements com. Doc from com. Returns the list of this module's dependencies. Each dependency must be satisfied at run time for this module to function properly. | |
| getImportPolicyClassName | back to summary |
|---|---|
| public String getImportPolicyClassName() Implements com. Doc from com. Returns the import policy class name. Although the implementation of this policy does not necessary have to implement the ImportPolicy, but could use another interface, it is the responsibility of the associated Repository to invoke that interface when the module is started. | |
| getLifecyclePolicyClassName | back to summary |
|---|---|
| public String getLifecyclePolicyClassName() Implements com. Doc from com. Returns the lifecycle policy class name. Although the implementation of this policy does not necessary have to implement the LifecyclePolicy, but could use another interface, it is the responsibility of the associated Repository to invoke that interface when the module is started. | |
| getLocations | back to summary |
|---|---|
| public URI[] getLocations() Implements com. Doc from com. A Module is implemented by one to many jar files. This method returns the list of jar files implementing the module | |
| getManifest | back to summary |
|---|---|
| public Manifest getManifest() Implements com. Doc from com. Returns the manifest file for the main module 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. Doc from com. Returns the module name, usually this is the same name as the jar file name containing the module's implementation. | |
| getPublicInterfaces | back to summary |
|---|---|
| public String[] getPublicInterfaces() Implements com. Doc from com. Returns a list of public interfaces for this module. Public interface can be packages, interfaces, or classes | |
| getVersion | back to summary |
|---|---|
| public String getVersion() Implements com. Doc from com. Returns the version of this module's implementation | |
| ok | back to summary |
|---|---|
| private static boolean ok(String s) | |
| ok | back to summary |
|---|---|
| private static boolean ok(String[] ss) | |
| readFully | back to summary |
|---|---|
| private static byte[] readFully(URL url) throws IOException | |