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