Class DecoratorMatcher
- java.lang.Object
-
- org.jboss.resteasy.core.interception.DecoratorMatcher
-
public class DecoratorMatcher extends java.lang.ObjectFinds DecoratorProcessors and calls decorates on them by introspecting annotations.- Version:
- $Revision: 1 $
- 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(java.lang.Class<T> targetClass, T target, java.lang.Class type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)private <T> voidregisterDecorators(java.lang.Class<T> targetClass, java.util.HashMap<java.lang.Class<?>,java.lang.annotation.Annotation> meta, java.lang.annotation.Annotation[] annotations)
-
-
-
Method Detail
-
decorate
public <T> T decorate(java.lang.Class<T> targetClass, T target, java.lang.Class type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)- Type Parameters:
T-- Parameters:
targetClass- i.e. Marshallertarget-type- i.e. a JAXB annotated classannotations- i.e. method or parameter annotationsmediaType-- Returns:
-
registerDecorators
private <T> void registerDecorators(java.lang.Class<T> targetClass, java.util.HashMap<java.lang.Class<?>,java.lang.annotation.Annotation> meta, java.lang.annotation.Annotation[] annotations)
-
-