com.caucho.make
Class DependencyContainer

java.lang.Object
  extended by com.caucho.make.DependencyContainer
All Implemented Interfaces:
Dependency

public class DependencyContainer
extends java.lang.Object
implements Dependency

Contains a set of dependencies.


Constructor Summary
DependencyContainer()
           
 
Method Summary
 DependencyContainer add(Dependency dependency)
          Adds a dependency.
 DependencyContainer addAll(java.util.ArrayList<Dependency> dependencyList)
           
 DependencyContainer addAll(DependencyContainer container)
           
 void clearModified()
          Clears the modified flag and sets the last check time to now.
 long getCheckInterval()
          Gets the check modification check interval.
 java.util.ArrayList<Dependency> getDependencies()
           
 boolean isModified()
          Returns true if the underlying dependencies have changed.
 boolean isModifiedNow()
          Returns true if the underlying dependencies have changed, forcing a check.
 boolean logModified(java.util.logging.Logger log)
          Logs the reason for modification.
 DependencyContainer remove(Dependency dependency)
          Removes a dependency.
 void resetDependencyCheckInterval()
          Resets the check interval.
 void setCheckInterval(long checkInterval)
          Sets the check modification check interval in milliseconds.
 void setModified(boolean isModified)
          Sets the modified.
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DependencyContainer

public DependencyContainer()
Method Detail

add

public DependencyContainer add(Dependency dependency)
Adds a dependency.


addAll

public DependencyContainer addAll(DependencyContainer container)

addAll

public DependencyContainer addAll(java.util.ArrayList<Dependency> dependencyList)

getDependencies

public java.util.ArrayList<Dependency> getDependencies()

remove

public DependencyContainer remove(Dependency dependency)
Removes a dependency.


size

public int size()

setCheckInterval

public void setCheckInterval(long checkInterval)
Sets the check modification check interval in milliseconds. Negative values mean never check. 0 means always check.

Parameters:
checkInterval - how often the dependency should be checked

getCheckInterval

public long getCheckInterval()
Gets the check modification check interval. Negative values mean never check. 0 means always check.


setModified

public void setModified(boolean isModified)
Sets the modified.


resetDependencyCheckInterval

public void resetDependencyCheckInterval()
Resets the check interval.


clearModified

public void clearModified()
Clears the modified flag and sets the last check time to now.


isModified

public boolean isModified()
Returns true if the underlying dependencies have changed.

Specified by:
isModified in interface Dependency

logModified

public boolean logModified(java.util.logging.Logger log)
Logs the reason for modification.

Specified by:
logModified in interface Dependency

isModifiedNow

public boolean isModifiedNow()
Returns true if the underlying dependencies have changed, forcing a check.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object