ApplicationConfig.java [src/java/m/cfa] Revision: 4daefd1ac3a5cce6d2af07d219b133db7ce0b7a4  Date: Thu Sep 26 16:17:42 MDT 2013
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package m.cfa;

import csip.Config;
import java.util.Set;
import javax.ws.rs.core.Application;

/**
 *
 * @author User
 */
@javax.ws.rs.ApplicationPath("")
public class ApplicationConfig extends Application {

    @Override
    public Set<Class<?>> getClasses() {
        Set<Class<?>> resources = new java.util.HashSet<Class<?>>();
        addRestResourceClasses(resources);
        Config.registry().register(resources);
        return resources;
    }

    /**
     * Do not modify addRestResourceClasses() method. It is automatically
     * re-generated by NetBeans REST support to populate given list with all
     * resources defined in the project.
     */
    private void addRestResourceClasses(Set<Class<?>> resources) {
        resources.add(m.cfa.Baseflow_V1_0.class);
        resources.add(m.cfa.Download_V1_0.class);
        resources.add(m.cfa.Drought_V1_0.class);
        resources.add(m.cfa.DurationCurve_V1_0.class);
        resources.add(m.cfa.Flood_V1_0.class);
        resources.add(m.cfa.LOADEST_V1_0.class);
        resources.add(m.cfa.Timeseries_V1_0.class);
        resources.add(services.AbstractModelService.class);
        resources.add(services.ArchiveService.class);
        resources.add(services.CatalogService.class);
        resources.add(services.ControlService.class);
        resources.add(services.QueryService.class);
        resources.add(services.ReportService.class);
    }
}