Class DecoratorMatcher

    • Constructor Detail

      • DecoratorMatcher

        public DecoratorMatcher()
    • Method Detail

      • decorate

        public <T> T decorate​(Class<T> targetClass,
                              T target,
                              Class type,
                              Annotation[] annotations,
                              jakarta.ws.rs.core.MediaType mediaType)
        Type Parameters:
        T - type
        Parameters:
        targetClass - i.e. Marshaller
        target - target object
        type - i.e. a JAXB annotated class
        annotations - i.e. method or parameter annotations
        mediaType - media type
        Returns:
        decorated target object
      • hasDecorator

        public <T> boolean hasDecorator​(Class<T> targetClass,
                                        Annotation[] annotations)