Commits

Sam Adams  committed 6e050af

Remove redundant fields/parameters

  • Participants
  • Parent commits f5c5cf1

Comments (0)

Files changed (1)

File compchem-handler/src/main/java/net/chempound/compchem/display/CompChemSplashPageWriter.java

 import freemarker.template.TemplateHashModel;
 import net.chempound.compchem.rdf.CompChemCalculation;
 import net.chempound.rdf.CPTerms;
-import net.chempound.services.FreemarkerService;
 import net.chempound.webapp.output.AbstractSplashPageWriter;
 import net.chempound.webapp.output.Page;
 import org.apache.commons.io.IOUtils;
 
-import javax.inject.Inject;
+import javax.inject.Singleton;
 import java.io.IOException;
 import java.io.InputStream;
 import java.net.URI;
-import java.util.Map;
 
 /**
  * @author Sam Adams
  */
+@Singleton
 public class CompChemSplashPageWriter extends AbstractSplashPageWriter {
 
     private static final String headers;
         }
     }
 
-    @Inject
-    public CompChemSplashPageWriter(final FreemarkerService freemarker) {
-        super(freemarker);
-    }
-
     @Override
     protected Class<? extends Resource> getResourceType() {
         return CompChemCalculation.class;
     }
 
     @Override
-    public void write(final Model model, final URI aggregationUri, final Map<String, Object> map, final Page page) throws IOException, TemplateException {
+    public void write(final Model model, final URI aggregationUri, final Page page) throws IOException, TemplateException {
         page.addParam("headers", headers);
 
         final BeansWrapper wrapper = BeansWrapper.getDefaultInstance();
         page.addParam("CP", staticModels.get(CPTerms.class.getName()));
         page.addParam("DC", staticModels.get(DCTerms.class.getName()));
 
-        super.write(model, aggregationUri, map, page);
+        super.write(model, aggregationUri, page);
     }
 
 }