Class DecoratorMatcher

java.lang.Object
org.jboss.resteasy.core.interception.jaxrs.DecoratorMatcher

public class DecoratorMatcher extends Object
Finds DecoratorProcessors and calls decorates on them by introspecting annotations.
Version:
$Revision: 1 $
Author:
Bill Burke
See Also:
  • Constructor Details

    • DecoratorMatcher

      public DecoratorMatcher()
  • Method Details

    • decorate

      public <T> T decorate(Class<T> targetClass, T target, Class type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Type Parameters:
      T - type
      Parameters:
      targetClass - i.e. Marshaller
      target - target object
      type - i.e. a JAXB annotated class
      annotations - i.e. method or parameter annotations
      mediaType - media type
      Returns:
      decorated target object
    • hasDecorator

      public <T> boolean hasDecorator(Class<T> targetClass, Annotation[] annotations)