Class MessagingBinders.MessageBodyProviders

  • All Implemented Interfaces:
    Binder
    Enclosing class:
    MessagingBinders

    public static class MessagingBinders.MessageBodyProviders
    extends AbstractBinder
    Message body providers injection binder.
    • Field Detail

      • applicationProperties

        private final java.util.Map<java.lang.String,​java.lang.Object> applicationProperties
      • runtimeType

        private final javax.ws.rs.RuntimeType runtimeType
    • Constructor Detail

      • MessageBodyProviders

        public MessageBodyProviders​(java.util.Map<java.lang.String,​java.lang.Object> applicationProperties,
                                    javax.ws.rs.RuntimeType runtimeType)
        Create new message body providers injection binder.
        Parameters:
        applicationProperties - map containing application properties. May be null.
        runtimeType - runtime (client or server) where the binder is used.
    • Method Detail

      • configure

        protected void configure()
        Description copied from class: AbstractBinder
        Implement to provide binding definitions using the exposed binding methods.
        Specified by:
        configure in class AbstractBinder
      • bindSingletonWorker

        private <T extends javax.ws.rs.ext.MessageBodyReader & javax.ws.rs.ext.MessageBodyWriter> void bindSingletonWorker​(java.lang.Class<T> worker)