/*
 * Copyright 2015.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tascape.qa.thr.rest;

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

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

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

    /**
     * Do not modify addRestResourceClasses() method. It is automatically
     * populated with all resources defined in the project. If required, comment
     * out calling this method in getClasses().
     */
    private void addRestResourceClasses(Set<Class<?>> resources) {
        resources.add(com.tascape.qa.thr.rest.SuiteResult.class);
        resources.add(org.eclipse.persistence.jpa.rs.exceptions.JPARSExceptionMapper.class);
        resources.add(org.eclipse.persistence.jpa.rs.resources.EntityResource.class);
        resources.add(org.eclipse.persistence.jpa.rs.resources.MetadataResource.class);
        resources.add(org.eclipse.persistence.jpa.rs.resources.PersistenceResource.class);
        resources.add(org.eclipse.persistence.jpa.rs.resources.PersistenceUnitResource.class);
        resources.add(org.eclipse.persistence.jpa.rs.resources.QueryResource.class);
        resources.add(org.eclipse.persistence.jpa.rs.resources.SingleResultQueryResource.class);
        resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.EntityResource.class);
        resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.PersistenceResource.class);
        resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.PersistenceUnitResource.class);
        resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.QueryResource.class);
        resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.SingleResultQueryResource.class);
    }
}

@@ -1345,1157 +1345,8 @@
 s);%0A
-        resources.add(org.eclipse.persistence.jpa.rs.exceptions.JPARSExceptionMapper.class);%0A        resources.add(org.eclipse.persistence.jpa.rs.resources.EntityResource.class);%0A        resources.add(org.eclipse.persistence.jpa.rs.resources.MetadataResource.class);%0A        resources.add(org.eclipse.persistence.jpa.rs.resources.PersistenceResource.class);%0A        resources.add(org.eclipse.persistence.jpa.rs.resources.PersistenceUnitResource.class);%0A        resources.add(org.eclipse.persistence.jpa.rs.resources.QueryResource.class);%0A        resources.add(org.eclipse.persistence.jpa.rs.resources.SingleResultQueryResource.class);%0A        resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.EntityResource.class);%0A        resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.PersistenceResource.class);%0A        resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.PersistenceUnitResource.class);%0A        resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.QueryResource.class);%0A        resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.SingleResultQueryResource.class);%0A
     

update dependency