Class StreamWriterRepository

  • All Implemented Interfaces:
    org.n52.janmayen.lifecycle.Constructable

    public class StreamWriterRepository
    extends org.n52.janmayen.component.AbstractSimilarityKeyRepository<StreamWriterKey,StreamWriter<?>>
    implements org.n52.janmayen.lifecycle.Constructable
    TODO JavaDoc
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> java.util.Optional<StreamWriter<? super T>> getWriter​(org.n52.janmayen.http.MediaType mediaType, java.lang.Class<? extends T> type)  
      <T> java.util.Optional<StreamWriter<? super T>> getWriter​(StreamWriterKey key)  
      void init()  
      void set​(java.util.Optional<java.util.Collection<javax.inject.Provider<StreamWriter<?>>>> writers)  
      • Methods inherited from class org.n52.janmayen.component.AbstractSimilarityKeyRepository

        get, keys, setProducers
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StreamWriterRepository

        public StreamWriterRepository()
    • Method Detail

      • init

        public void init()
        Specified by:
        init in interface org.n52.janmayen.lifecycle.Constructable
      • getWriter

        public <T> java.util.Optional<StreamWriter<? super T>> getWriter​(org.n52.janmayen.http.MediaType mediaType,
                                                                         java.lang.Class<? extends T> type)
      • set

        @Inject
        public void set​(java.util.Optional<java.util.Collection<javax.inject.Provider<StreamWriter<?>>>> writers)