Package org.jboss.resteasy.core.interception.jaxrs

## 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:
    `DecoratorProcessor`, `DecorateTypes`, `Decorator`

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `DecoratorMatcher()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `<T> T` | `decorate​(Class<T> targetClass, T target, Class type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)` |
    `<T> boolean` | `hasDecorator​(Class<T> targetClass, Annotation[] annotations)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DecoratorMatcher

          public DecoratorMatcher()

  - ### Method Detail

    - #### decorate

          public <T> T decorate​(Class<T> targetClass,
                                T target,
                                Class type,
                                Annotation[] annotations,
                                javax.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)