|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.enterprise.module.ModuleDependency
public class ModuleDependency
A ModuleDependency instance holds all information necessary to identify a dependency between modules. Modules can declare their dependency on a separate module using the name, the version and whether they accept the sub module implementation to be shared. They can also specify whether or not they want to re-export the sub module public interfaces. Re-exporting means that the sub-module's public interfaces will also be published as a public interface of the enclosing module.
Constructor Summary | |
---|---|
ModuleDependency(String name,
String version)
Create a new instance of ModuleDependency, where the sub module is idenfied by its name and version. |
|
ModuleDependency(String name,
String version,
boolean shared,
boolean reexport)
Create a new instance of ModuleDependency, where the sub module is idenfied by its name and version and wheter the containing module requires a private copy or not |
Method Summary | |
---|---|
String |
getName()
Returns the module name |
String |
getVersion()
Returns the module version |
boolean |
isReexporting()
Returns true if the containing module is reexporting the public interfaces of the sub module |
boolean |
isShared()
Returns true if the containing module accept a shared implementation of the sub module |
String |
toString()
Returns a string representation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ModuleDependency(String name, String version)
name
- the module nameversion
- the module versionpublic ModuleDependency(String name, String version, boolean shared, boolean reexport)
name
- the module nameversion
- the module versionshared
- true if the containing module accept a shared copyMethod Detail |
---|
public String getName()
public String getVersion()
public boolean isShared()
public boolean isReexporting()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |