Qwylt

java.lang.module.spi
Class SharesDependentPackages

java.lang.Object
  extended by java.lang.module.spi.ImportConstraint
      extended by java.lang.module.spi.SharesDependentPackages

public class SharesDependentPackages
extends ImportConstraint

A COMMIT phase PackageConstraintthat visits all dependencies, recursively, and finds a common candidate for each export that declares a package dependency.

Since:
Jan 5, 2009
Author:
Bryan Atsatt

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.module.spi.ImportConstraint
ImportConstraint.Phase
 
Field Summary
 
Fields inherited from class java.lang.module.spi.ImportConstraint
HAS_NO_LOOPBACK_CONNECTIONS, HAS_RE_EXPORTS
 
Constructor Summary
SharesDependentPackages()
           
 
Method Summary
 void apply(ImportConstraint.Phase phase, ImportSpace domain)
          Applies this constraint if required for the specified phase, potentially reducing the set of candidates in the domain.
 boolean applyIn(ImportConstraint.Phase phase)
          Returns true if this constraint should be applied in the specified phase.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharesDependentPackages

public SharesDependentPackages()
Method Detail

applyIn

public boolean applyIn(ImportConstraint.Phase phase)
Returns true if this constraint should be applied in the specified phase.

Specified by:
applyIn in class ImportConstraint
Parameters:
phase - The phase.
Returns:
true if constraint should be applied; otherwise, returns false.

apply

public void apply(ImportConstraint.Phase phase,
                  ImportSpace domain)
Applies this constraint if required for the specified phase, potentially reducing the set of candidates in the domain.

Specified by:
apply in class ImportConstraint
Parameters:
phase - The phase of the domain.
domain - The domain.
Throws:
ConnectionError - if the constraint is not satisfied.

Qwylt

Send comments or questions to Bryan Atsatt