org.jboss.resteasy.core.interception
Class DecoratorMatcher

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

public class DecoratorMatcher
extends java.lang.Object

Finds DecoratorProcessors and calls decorates on them by introspecting annotations.

Version:
$Revision: 1 $
Author:
Bill Burke
See Also:
DecoratorProcessor, DecorateTypes, Decorator

Constructor Summary
DecoratorMatcher()
           
 
Method Summary
<T> T
decorate(java.lang.Class<T> targetClass, T target, java.lang.Class type, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
           
 
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(java.lang.Class<T> targetClass,
                      T target,
                      java.lang.Class type,
                      java.lang.annotation.Annotation[] annotations,
                      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:


Copyright © 2010. All Rights Reserved.