Author: ruschein
Date: 2011-04-04 16:08:57 -0700 (Mon, 04 Apr 2011)
New Revision: 24667

Added:
   
core3/swing-application-impl/trunk/src/main/java/org/cytoscape/internal/shutdown/PropertyWriterFactory.java
Log:
Work in progress.

Added: 
core3/swing-application-impl/trunk/src/main/java/org/cytoscape/internal/shutdown/PropertyWriterFactory.java
===================================================================
--- 
core3/swing-application-impl/trunk/src/main/java/org/cytoscape/internal/shutdown/PropertyWriterFactory.java
                         (rev 0)
+++ 
core3/swing-application-impl/trunk/src/main/java/org/cytoscape/internal/shutdown/PropertyWriterFactory.java
 2011-04-04 23:08:57 UTC (rev 24667)
@@ -0,0 +1,28 @@
+package org.cytoscape.internal.shutdown;
+
+
+import java.io.File;
+
+import org.cytoscape.io.write.CyPropertyWriterManager;
+import org.cytoscape.property.CyProperty;
+import org.cytoscape.work.TaskFactory;
+import org.cytoscape.work.TaskIterator;
+
+
+final class PropertyWriterFactory implements TaskFactory {
+       private final CyPropertyWriterManager writerManager;
+       private final CyProperty property;
+       private final File outputFile;
+
+       PropertyWriterFactory(final CyPropertyWriterManager writerManager, 
final CyProperty property,
+                              final File outputFile)
+       {
+               this.writerManager = writerManager;
+               this.property      = property;
+               this.outputFile    = outputFile;
+       }
+
+       public TaskIterator getTaskIterator() {
+               return new TaskIterator(new PropertyWriter(writerManager, 
property, outputFile));
+       }
+}
\ No newline at end of file

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to