uk.ac.ed.inf.ogsaconfig.garm.collections
Class GeneratedCollection

java.lang.Object
  |
  +--uk.ac.ed.inf.ogsaconfig.garm.collections.MetaCollection
        |
        +--uk.ac.ed.inf.ogsaconfig.garm.collections.GeneratedCollection
All Implemented Interfaces:
FileCollection

public class GeneratedCollection
extends MetaCollection

A generated collection is one which catches some files deployed into it, and uses them to generate other files which it passes down. This is currently used for deployment files.


Constructor Summary
GeneratedCollection(FileCollection base, Generator generator, PersistenceMechanism store)
           
 
Method Summary
 boolean add(VFile vfile)
          Adds a new file to the collection, which may or may not replace the existing file.
 void destroy()
          Informs the collection of an impending shutdown, and instructs it to save all necessary state.
 boolean performRemove(VFile vfile)
           
 
Methods inherited from class uk.ac.ed.inf.ogsaconfig.garm.collections.MetaCollection
bases, contents, contents, remove, retrieve, root
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratedCollection

public GeneratedCollection(FileCollection base,
                           Generator generator,
                           PersistenceMechanism store)
Method Detail

destroy

public void destroy()
Description copied from interface: FileCollection
Informs the collection of an impending shutdown, and instructs it to save all necessary state. This is guaranteed to be called before the collection is destroyed.

Specified by:
destroy in interface FileCollection
Overrides:
destroy in class MetaCollection

add

public boolean add(VFile vfile)
Description copied from interface: FileCollection
Adds a new file to the collection, which may or may not replace the existing file. Returns true if the operation was successful, false otherwise.

Specified by:
add in interface FileCollection
Overrides:
add in class MetaCollection

performRemove

public boolean performRemove(VFile vfile)