|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.module.common_impl.DefaultModuleDefinition
public class DefaultModuleDefinition
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.
| Field Summary | |
|---|---|
protected java.util.List<java.net.URI> |
classPath
|
protected java.util.List<ModuleDependency> |
dependencies
|
protected java.util.jar.Attributes |
mainAttributes
Main attributes section of the manifest. |
| Constructor Summary | |
|---|---|
DefaultModuleDefinition(java.io.File location)
TO DO need to support a URI constructor |
|
DefaultModuleDefinition(java.io.File location,
java.util.jar.Attributes attr)
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
decorateClassPath(java.lang.String classpathElement)
Extension point to manipulate the classpath element before it's parsed. |
ModuleDependency[] |
getDependencies()
Returns the list of module dependencies |
java.lang.String |
getImportPolicyClassName()
Returns the class name implementing the ImportPolicy interface for this module or
null if there is no such implementation |
java.lang.String |
getLifecyclePolicyClassName()
Returns the class name implementing the LifecyclePolicy interface for this module or
null if there is no such implementation |
java.net.URI[] |
getLocations()
Returns the list of URI locations forming the classpath for this module. |
java.util.jar.Manifest |
getManifest()
Returns the manifest file from the module's implementation jar file |
ModuleMetadata |
getMetadata()
Gets the metadata that describes various components and services in this module. |
java.lang.String |
getName()
Returns the name of the module |
java.lang.String[] |
getPublicInterfaces()
Returns the list of classes and packages that have been designated as public interfaces of this module. |
java.lang.String |
getVersion()
Returns the module's version |
protected void |
parseAttributes(java.util.jar.Attributes attr)
Extensibility point to parse more information from Manifest attributes. |
protected void |
parseClassPath(java.util.jar.Attributes attr,
java.net.URI baseURI)
Parses from manifest attributes and updates URI list. |
java.lang.String |
toString()
Assists debugging. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.List<ModuleDependency> dependencies
protected final java.util.List<java.net.URI> classPath
protected final java.util.jar.Attributes mainAttributes
| Constructor Detail |
|---|
public DefaultModuleDefinition(java.io.File location)
throws java.io.IOException
java.io.IOException
public DefaultModuleDefinition(java.io.File location,
java.util.jar.Attributes attr)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
protected void parseClassPath(java.util.jar.Attributes attr,
java.net.URI baseURI)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String decorateClassPath(java.lang.String classpathElement)
parseClassPath(Attributes,URI)protected void parseAttributes(java.util.jar.Attributes attr)
attr - Main attributes of the manifest. Always non-null.public java.lang.String getName()
getName in interface ModuleDefinitionpublic java.lang.String[] getPublicInterfaces()
getPublicInterfaces in interface ModuleDefinitionpublic ModuleDependency[] getDependencies()
getDependencies in interface ModuleDefinitionpublic java.net.URI[] getLocations()
getLocations in interface ModuleDefinitionpublic java.lang.String getVersion()
getVersion in interface ModuleDefinitionpublic java.lang.String getImportPolicyClassName()
ImportPolicy interface for this module or
null if there is no such implementation
getImportPolicyClassName in interface ModuleDefinitionImportPolicy implementation class namepublic java.lang.String getLifecyclePolicyClassName()
LifecyclePolicy interface for this module or
null if there is no such implementation
getLifecyclePolicyClassName in interface ModuleDefinitionLifecyclePolicy implementation class namepublic java.util.jar.Manifest getManifest()
getManifest in interface ModuleDefinitionpublic ModuleMetadata getMetadata()
ModuleDefinition
getMetadata in interface ModuleDefinitionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||