package br.furb.eventos.ws;

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

/**
 * Classe de configuração dos Web Services.
 * 
 * @author Alexandre
 *
 * URL padrão: http://localhost:8084/eventos/api/
 */
@javax.ws.rs.ApplicationPath("api")
public class ApplicationConfig extends Application {

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

        try {
            // Habilita suporte a JSON no Jersey.
            Class jacksonProvider = Class.forName("org.codehaus.jackson.jaxrs.JacksonJsonProvider");
            resources.add(jacksonProvider);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }

        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(br.furb.eventos.ws.EventsResource.class);
        resources.add(br.furb.eventos.ws.UserResource.class);
    }
}

@@ -113,16 +113,71 @@
 ication;
+%0Aimport org.codehaus.jackson.jaxrs.JacksonJsonProvider;
 %0A%0A/**%0A *
@@ -220,17 +220,16 @@
 ices.%0A *
- 
 %0A * @aut
@@ -560,17 +560,47 @@
     
+/* TODO: Remover depois%0A         
 try %7B%0A
-   
     
@@ -642,19 +642,16 @@
 Jersey.%0A
-   
         
@@ -745,27 +745,24 @@
 );%0A         
-  
- 
 resources.ad
@@ -781,16 +781,17 @@
 vider);%0A
+ 
         
@@ -824,27 +824,24 @@
 ption ex) %7B%0A
-   
          Log
@@ -927,25 +927,143 @@
 x);%0A        
-%7D
+ %7D%0A         */%0A        %0A        // Habilita suporte a JSON no Jersey.%0A        resources.add(JacksonJsonProvider.class);
 %0A%0A        re

Remove reflection.