package org.jboss.resteasy.test.providers.jaxb.resource; import org.jboss.resteasy.annotations.DecorateTypes; import org.jboss.resteasy.spi.interception.DecoratorProcessor; import javax.ws.rs.core.MediaType; import javax.xml.bind.Marshaller; import java.lang.annotation.Annotation; @DecorateTypes("application/json") public class XmlHeaderDecorator implements DecoratorProcessor<Marshaller, XmlHeaderJunkIntf> { public Marshaller decorate(Marshaller target, XmlHeaderJunkIntf annotation, Class type, Annotation[] annotations, MediaType mediaType) { throw new RuntimeException("FAILURE!!!!"); } }