public class DependencyConfiguration extends HashStructureAdapter
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
DATA_KEY
Key for obtaining the project dependency configuration. 
 | 
static java.lang.String | 
DEPENDENCY_LIST  | 
_hash| Modifier and Type | Method and Description | 
|---|---|
void | 
addDependency(Dependable dependable)
Adds a dependency to the project. 
 | 
void | 
addDependency(Dependable dependable,
             boolean isModulePathDependency)
Adds a dependency to the project. 
 | 
void | 
attachDependencyChangeListener(StructureChangeListener listener)  | 
void | 
detachDependencyChangeListener(StructureChangeListener listener)  | 
java.util.List<Dependable> | 
getAllClassPathDependenciesList()
Returns all class path dependables this project depends on. 
 | 
java.util.List | 
getAllDependenciesList()
Returns all dependables this project depends on, both dependables for
 the class path and dependables for the module path. 
 | 
java.util.List<Dependable> | 
getAllModulePathDependenciesList()
Returns all module path dependables this project depends on. 
 | 
java.util.List<Dependable> | 
getClassPathDependencyList()
Get a list of  
Dependables this project directly depends on, where
 the dependencies are class path dependencies. | 
java.util.Iterator | 
getDependencies()
Returns dependables this project directly depends on, both dependables for
 the class path and dependables for the module path. 
 | 
java.util.List | 
getDependencyList()
Get a list of  
Dependables this project directly depends on, where
 the dependencies are either class path or module path dependencies. | 
static DependencyConfiguration | 
getInstance(Project project)  | 
static DependencyConfiguration | 
getInstance(PropertyStorage project)  | 
static java.util.logging.Logger | 
getLogger()  | 
java.util.List<Dependable> | 
getModulePathDependencyList()
Get a list of  
Dependables this project directly depends on, where
 the dependencies are module path dependencies. | 
void | 
removeDependency(Dependable dependable)
Removes the specified  
element from the class path 
 dependencies list and the module path dependencies list. | 
void | 
setDependencyList(java.util.List dependencies)
This method is used internally. 
 | 
void | 
setModulePathDependencyList(java.util.List<Dependable> dependencies)
This method is used internally. 
 | 
addStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEqualspublic static final java.lang.String DATA_KEY
public static final java.lang.String DEPENDENCY_LIST
public static DependencyConfiguration getInstance(Project project)
public static DependencyConfiguration getInstance(PropertyStorage project)
public void attachDependencyChangeListener(StructureChangeListener listener)
public void detachDependencyChangeListener(StructureChangeListener listener)
public java.util.List getDependencyList()
Dependables this project directly depends on, where
 the dependencies are either class path or module path dependencies.public java.util.List<Dependable> getClassPathDependencyList()
Dependables this project directly depends on, where
 the dependencies are class path dependencies.public java.util.List<Dependable> getModulePathDependencyList()
Dependables this project directly depends on, where
 the dependencies are module path dependencies.public void setDependencyList(java.util.List dependencies)
addDependency(Dependable, boolean) and 
 removeDependency(Dependable) methods instead.
 Set the dependencies, where the dependencies are for the class path
 and the module path. The caller is responsible for calling
 setModulePathDependencyList(List) as appropriate.dependencies - The new dependenciespublic void setModulePathDependencyList(java.util.List<Dependable> dependencies)
addDependency(Dependable, boolean) and 
 removeDependency(Dependable) methods instead.
 Set the dependencies, where the dependencies are for the
 the module path. The caller is responsible for calling
 setDependencyList(List) as appropriate.dependencies - The new module path dependenciespublic void addDependency(Dependable dependable) throws java.lang.IllegalStateException
addDependency(Dependable) is 
 called when a mutually-exclusive dependency already exists on the Dependable 
 source an IllegalStateException is thrown. For example, if addDependency is 
 called with a dependable that represents a build-output path, and there is 
 an existing dependency on a deployment profile in that same project, an
 exception is thrown.dependable - the Dependablejava.lang.IllegalStateException - if a mutually exclusive dependency already existsaddDependency( Dependable, boolean )public void addDependency(Dependable dependable, boolean isModulePathDependency)
addDependency(Dependable) is 
 called when a mutually-exclusive dependency already exists on the Dependable 
 source an IllegalStateException is thrown. For example, if addDependency is 
 called with a dependable that represents a build-output path, and there is 
 an existing dependency on a deployment profile in that same project, an
 exception is thrown.dependable - the DependableisModulePathDependency - if true, the dependency's class path is added to the
 module path, otherwise it's added to the class pathjava.lang.IllegalStateException - if a mutually exclusive dependency already existspublic void removeDependency(Dependable dependable)
element from the class path 
 dependencies list and the module path dependencies list.public static final java.util.logging.Logger getLogger()
public java.util.Iterator getDependencies()
public java.util.List getAllDependenciesList()
List of all dependables.public java.util.List<Dependable> getAllClassPathDependenciesList()
List of all dependables.public java.util.List<Dependable> getAllModulePathDependenciesList()
List of all dependables.