|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.util.resources.ResourceDependencyList
public final class ResourceDependencyList
Used to build resource dependencies. Dependencies on resources can be
added to this list, and when done a ResourceDependencies object can
be gotten from this. This is NOT threadsafe(!), but the resulting
ResourceDependencies
instance is.
Field Summary | |
---|---|
static IResourceDependencyList |
NULL
If you do not want to collect dependencies you can use this as an instance. |
Constructor Summary | |
---|---|
ResourceDependencyList()
|
Method Summary | |
---|---|
void |
add(IIsModified m)
Add a IIsModified instance. |
void |
add(IModifyableResource c)
Add an IModifyableResource instance. |
void |
add(IResourceRef ref)
Add a resource to the dependency list. |
void |
add(ResourceDependencyList c)
|
ResourceDependencies |
createDependencies()
Get the immutable dependencies instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final IResourceDependencyList NULL
Constructor Detail |
---|
public ResourceDependencyList()
Method Detail |
---|
public void add(@Nonnull IResourceRef ref)
IResourceDependencyList
IIsModified
or IModifyableResource
, or this will throw an IllegalArgmentException. If the ref
implements IModifyableResource
then it will be wrapped in a ResourceTimestamp
instance which records the current modification time and implements IIsModified
.
add
in interface IResourceDependencyList
IResourceDependencyList.add(to.etc.domui.util.resources.IResourceRef)
public void add(@Nonnull IIsModified m)
IResourceDependencyList
add
in interface IResourceDependencyList
IResourceDependencyList.add(to.etc.domui.util.resources.IIsModified)
public void add(@Nonnull IModifyableResource c)
IResourceDependencyList
IModifyableResource
instance.
add
in interface IResourceDependencyList
IResourceDependencyList.add(to.etc.domui.util.resources.IModifyableResource)
public void add(@Nonnull ResourceDependencyList c)
to.etc.domui.util.resources.IResourceDependencyList#add(to.etc.domui.util.resources.ResourceDependencyList)
public ResourceDependencies createDependencies()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |