users@jersey.java.net

resources inheritance

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Tue, 11 Aug 2009 21:15:44 +0200

I guess I asked this before, but: may I create:

public abstract class PujGenericResource<T extends AbstractArenaEntity> {
        protected abstract PujEntityFacade<T> getFacade();

        @PUT
        @Consumes( { MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
        @Produces( { MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
        public T insert(T entity) {
                return getFacade().create(entity);
        }

and then create a concrete subclass .. and it will work with jersey ?

-- 
Looking for a client application for this service:
http://fgaucho.dyndns.org:8080/footprint-service/wadl