public class DependencyContainer extends java.lang.Object implements Dependency
Constructor and Description |
---|
DependencyContainer() |
DependencyContainer(java.lang.ClassLoader loader) |
Modifier and Type | Method and Description |
---|---|
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.lang.ClassLoader |
getClassLoader() |
java.util.ArrayList<Dependency> |
getDependencies() |
boolean |
isAsync() |
boolean |
isModified()
Returns true if the underlying dependencies have changed.
|
boolean |
isModified(boolean isAsync)
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 |
setAsync(boolean isAsync) |
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() |
public DependencyContainer()
public DependencyContainer(java.lang.ClassLoader loader)
public boolean isAsync()
public void setAsync(boolean isAsync)
public DependencyContainer add(Dependency dependency)
public DependencyContainer addAll(DependencyContainer container)
public DependencyContainer addAll(java.util.ArrayList<Dependency> dependencyList)
public java.util.ArrayList<Dependency> getDependencies()
public DependencyContainer remove(Dependency dependency)
public int size()
public void setCheckInterval(long checkInterval)
checkInterval
- how often the dependency should be checkedpublic long getCheckInterval()
public java.lang.ClassLoader getClassLoader()
public void setModified(boolean isModified)
public void resetDependencyCheckInterval()
public void clearModified()
public boolean isModified()
isModified
in interface Dependency
public boolean isModified(boolean isAsync)
public boolean logModified(java.util.logging.Logger log)
logModified
in interface Dependency
public boolean isModifiedNow()
public java.lang.String toString()
toString
in class java.lang.Object