public static Marshaller decorateMarshaller(Class type, Annotation[] annotations, MediaType mediaType, Marshaller marshaller) throws JAXBException { DecoratorMatcher processor = new DecoratorMatcher(); return processor.decorate(Marshaller.class, marshaller, type, annotations, mediaType); }
public static Unmarshaller decorateUnmarshaller(Class type, Annotation[] annotations, MediaType mediaType, Unmarshaller marshaller) throws JAXBException { DecoratorMatcher processor = new DecoratorMatcher(); return processor.decorate(Unmarshaller.class, marshaller, type, annotations, mediaType); }