public class ProxyModuleDefinition extends java.lang.Object implements ModuleDefinition
| Modifier and Type | Field and Description |
|---|---|
private java.lang.ClassLoader |
classLoader |
private java.util.List<ManifestProxy.SeparatorMappings> |
mappings |
| Constructor and Description |
|---|
ProxyModuleDefinition(java.lang.ClassLoader classLoader) |
ProxyModuleDefinition(java.lang.ClassLoader classLoader,
java.util.List<ManifestProxy.SeparatorMappings> mappings) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.jar.Manifest |
generate(ModuleMetadata metadata) |
ModuleDependency[] |
getDependencies()
Returns the list of this module's dependencies.
|
java.lang.String |
getImportPolicyClassName()
Returns the import policy class name.
|
java.lang.String |
getLifecyclePolicyClassName()
Returns the lifecycle policy class name.
|
java.net.URI[] |
getLocations()
A Module is implemented by one to many jar files.
|
java.util.jar.Manifest |
getManifest()
Returns the manifest file for the main module jar file
|
ModuleMetadata |
getMetadata()
Gets the metadata that describes various components and services in this module.
|
java.lang.String |
getName()
Returns the module name, usually this is the same name as
the jar file name containing the module's implementation.
|
java.lang.String[] |
getPublicInterfaces()
Returns a list of public interfaces for this module.
|
java.lang.String |
getVersion()
Returns the version of this module's implementation
|
private static boolean |
ok(java.lang.String s) |
private static boolean |
ok(java.lang.String[] ss) |
private static byte[] |
readFully(java.net.URL url) |
private final java.lang.ClassLoader classLoader
private final java.util.List<ManifestProxy.SeparatorMappings> mappings
public ProxyModuleDefinition(java.lang.ClassLoader classLoader)
throws java.io.IOException
java.io.IOExceptionpublic ProxyModuleDefinition(java.lang.ClassLoader classLoader,
java.util.List<ManifestProxy.SeparatorMappings> mappings)
throws java.io.IOException
java.io.IOExceptionprivate static byte[] readFully(java.net.URL url)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getName()
ModuleDefinitiongetName in interface ModuleDefinitionpublic java.lang.String[] getPublicInterfaces()
ModuleDefinitiongetPublicInterfaces in interface ModuleDefinitionpublic ModuleDependency[] getDependencies()
ModuleDefinitiongetDependencies in interface ModuleDefinitionpublic java.net.URI[] getLocations()
ModuleDefinitiongetLocations in interface ModuleDefinitionpublic java.lang.String getVersion()
ModuleDefinitiongetVersion in interface ModuleDefinitionpublic java.lang.String getImportPolicyClassName()
ModuleDefinitiongetImportPolicyClassName in interface ModuleDefinitionImportPolicy,
or null if no import policy exists.public java.lang.String getLifecyclePolicyClassName()
ModuleDefinitiongetLifecyclePolicyClassName in interface ModuleDefinitionLifecyclePolicy,
or null if no import policy exists.public java.util.jar.Manifest getManifest()
ModuleDefinitiongetManifest in interface ModuleDefinitionpublic ModuleMetadata getMetadata()
ModuleDefinitiongetMetadata in interface ModuleDefinitionprotected java.util.jar.Manifest generate(ModuleMetadata metadata)
private static boolean ok(java.lang.String s)
private static boolean ok(java.lang.String[] ss)