- made a producer for startpages per topic
[mir.git] / source / mircoders / producer / ContentProducerFactory.java
index 048b2d6..94b437f 100755 (executable)
@@ -8,22 +8,18 @@ import mircoders.storage.*;
 public class ContentProducerFactory implements ProducerFactory {
   private String generatorIdentifier;
   private String resourceBundle;
-  private String outputFilePrefix;
-  private String outputFilePostfix;
+  private String outputFileNameExpression;
   private int batchSize;
 
-// ML: extra selection needed for article types
   public ContentProducerFactory(
     String aGeneratorIdentifier,
     String aResourceBundle,
-    String anOutputFilePrefix,
-    String anOutputFilePostfix,
+    String anOutputFileNameExpression,
     int aBatchSize) {
 
-    generatorIdentifier=aGeneratorIdentifier;
-    resourceBundle=aResourceBundle;
-    outputFilePrefix=anOutputFilePrefix;
-    outputFilePostfix=anOutputFilePostfix;
+    generatorIdentifier = aGeneratorIdentifier;
+    resourceBundle = aResourceBundle;
+    outputFileNameExpression = anOutputFileNameExpression;
     batchSize=aBatchSize;
   }
 
@@ -45,8 +41,7 @@ public class ContentProducerFactory implements ProducerFactory {
           batchSize),
         generatorIdentifier,
         resourceBundle,
-        outputFilePrefix,
-        outputFilePostfix
+        outputFileNameExpression
       );
     } catch (Exception e) {
       throw new ProducerException(e);