Class DecoratorMatcher

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

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

    • DecoratorMatcher

      public DecoratorMatcher()
  • Method Details

    • decorate

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

      private <T> void registerDecorators(Class<T> targetClass, HashMap<Class<?>,Annotation> meta, Annotation[] annotations)