public class BasicDependencyContainer extends java.lang.Object implements Dependency
| Constructor and Description |
|---|
BasicDependencyContainer() |
| Modifier and Type | Method and Description |
|---|---|
BasicDependencyContainer |
add(Dependency dependency)
Adds a dependency.
|
void |
clearModified()
Clears the modified flag and sets the last check time to now.
|
long |
getCheckInterval()
Gets the check modification check interval.
|
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)
Log the reason for the modification
|
BasicDependencyContainer |
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.
|
java.lang.String |
toString() |
public BasicDependencyContainer add(Dependency dependency)
public BasicDependencyContainer remove(Dependency dependency)
public void setCheckInterval(long checkInterval)
checkInterval - how often the dependency should be checkedpublic long getCheckInterval()
public void setModified(boolean isModified)
public void resetDependencyCheckInterval()
public void clearModified()
public boolean isModified()
isModified in interface Dependencypublic boolean logModified(java.util.logging.Logger log)
logModified in interface Dependencypublic boolean isModifiedNow()
public java.lang.String toString()
toString in class java.lang.Object