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> Tdecorate(Class<T> targetClass, T target, Class type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)<T> booleanhasDecorator(Class<T> targetClass, Annotation[] annotations)
-
-
-
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. Marshallertarget- target objecttype- i.e. a JAXB annotated classannotations- i.e. method or parameter annotationsmediaType- media type- Returns:
- decorated target object
-
hasDecorator
public <T> boolean hasDecorator(Class<T> targetClass, Annotation[] annotations)
-
-