org.jboss.resteasy.spi.interception.DecoratorProcessor Maven / Gradle / Ivy
package org.jboss.resteasy.spi.interception;
import javax.ws.rs.core.MediaType;
import java.lang.annotation.Annotation;
/**
* Part of a generic decorator framework.
*
* Decorate a target. For example, decorate a JAXB Marshaller with property values.
*
* @author Bill Burke
* @version $Revision: 1 $
*/
public interface DecoratorProcessor
{
/**
* @param target i.e. a Marshaller instance
* @param annotation the annotation that triggered the decorator
* @param type
* @param annotations
* @param mediaType
* @return should never return null
*/
T decorate(T target, A annotation, Class type, Annotation[] annotations, MediaType mediaType);
}