Class DecoratorMatcher
java.lang.Object
org.jboss.resteasy.core.interception.DecoratorMatcher
Finds DecoratorProcessors and calls decorates on them by introspecting annotations.
- Version:
- $Revision: 1 $
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
decorate
(Class<T> targetClass, T target, Class type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) private <T> void
registerDecorators
(Class<T> targetClass, HashMap<Class<?>, Annotation> meta, Annotation[] annotations)
-
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. Marshallertarget
-type
- i.e. a JAXB annotated classannotations
- i.e. method or parameter annotationsmediaType
-- Returns:
-
registerDecorators
private <T> void registerDecorators(Class<T> targetClass, HashMap<Class<?>, Annotation> meta, Annotation[] annotations)
-