package org.jboss.resteasy.test.validation.cdi.resource;

import javax.ejb.Stateful;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Path("test")
@Stateful
public class CDIValidationSessionBeanResource implements CDIValidationSessionBeanProxy {
    private static final Logger log = LoggerFactory.getLogger(CDIValidationSessionBeanResource.class);

    @GET
    @Path("resource/{param}")
    @Produces(MediaType.TEXT_PLAIN)
    public int test(@PathParam("param") int param) {
        log.info("entering CDIValidationSessionBeanResource.test()");
        return param;
    }
}
