ApplicationConfig.java [src/java/m/cfa] Revision: 8a14a1f39c57cef453909e98f684e27c55143917  Date: Tue Oct 28 12:06:29 MDT 2014
/*
 * 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(csip.AbstractModelService.class);
        resources.add(csip.ArchiveService.class);
        resources.add(csip.CatalogService.class);
        resources.add(csip.ControlService.class);
        resources.add(csip.QueryService.class);
        resources.add(csip.ReportService.class);
        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.RegionalFlowDurationCurve_V1_0.class);
        resources.add(m.cfa.StageDischarge_V1_0.class);
        resources.add(m.cfa.Timeseries15min_V1_0.class);
        resources.add(m.cfa.Timeseries_V1_0.class);
    }
}