Class DecoratorMatcher


  • public class DecoratorMatcher
    extends java.lang.Object
    Finds DecoratorProcessors and calls decorates on them by introspecting annotations.
    Version:
    $Revision: 1 $
    See Also:
    DecoratorProcessor, DecorateTypes, Decorator
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <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)  
      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)  
      • 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,
                              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​(java.lang.Class<T> targetClass,
                                            java.util.HashMap<java.lang.Class<?>,​java.lang.annotation.Annotation> meta,
                                            java.lang.annotation.Annotation[] annotations)