001package org.nuxeo.template.jaxrs; 002 003import java.util.HashSet; 004import java.util.Set; 005 006import org.nuxeo.ecm.webengine.app.WebEngineModule; 007import org.nuxeo.ecm.webengine.model.io.BlobWriter; 008 009/** 010 * @author <a href="mailto:tdelprat@nuxeo.com">Tiry</a> 011 */ 012public class JAXRSTemplatesApplication extends WebEngineModule { 013 014 @Override 015 public Set<Class<?>> getClasses() { 016 Set<Class<?>> result = new HashSet<Class<?>>(); 017 result.add(RootResource.class); 018 result.add(TemplateBasedResource.class); 019 result.add(TemplateResource.class); 020 return result; 021 } 022 023 @Override 024 public Set<Object> getSingletons() { 025 Set<Object> result = new HashSet<Object>(); 026 result.add(new BlobWriter()); 027 return result; 028 } 029 030}