Package com.sun.enterprise.module
Class ModuleDependency
java.lang.Object
com.sun.enterprise.module.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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModuleDependency
(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
Modifier and TypeMethodDescriptiongetName()
Returns the module nameReturns the module versionboolean
Returns true if the containing module is reexporting the public interfaces of the sub moduleboolean
isShared()
Returns true if the containing module accept a shared implementation of the sub moduletoString()
Returns a string representation
-
Field Details
-
name
-
version
-
reexport
private final boolean reexport
-
-
Constructor Details
-
ModuleDependency
Create a new instance of ModuleDependency, where the sub module is idenfied by its name and version. The sub module implementation should be shared among users of that module- Parameters:
name
- the module nameversion
- the module version
-
ModuleDependency
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- Parameters:
name
- the module nameversion
- the module versionshared
- true if the containing module accept a shared copy
-
-
Method Details
-
getName
Returns the module name- Returns:
- the module name
-
getVersion
Returns the module version- Returns:
- the module version
-
isReexporting
public boolean isReexporting()Returns true if the containing module is reexporting the public interfaces of the sub module- Returns:
- true if reexporting the sub module public interface
-
toString
Returns a string representation
-