Class ViaProviders


  • public class ViaProviders
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ViaProviders()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T extends Provider>
      @Nullable T
      get​(java.lang.Class<T> provider)  
      <T extends Provider>
      void
      register​(java.lang.Class<T> provider, T value)  
      void require​(java.lang.Class<? extends Provider> provider)  
      <T extends Provider>
      void
      use​(java.lang.Class<T> provider, T value)  
      • Methods inherited from class java.lang.Object

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

      • ViaProviders

        public ViaProviders()
    • Method Detail

      • require

        public void require​(java.lang.Class<? extends Provider> provider)
      • register

        public <T extends Provider> void register​(java.lang.Class<T> provider,
                                                  T value)
      • use

        public <T extends Provider> void use​(java.lang.Class<T> provider,
                                             T value)
      • get

        public <T extends Provider> @Nullable T get​(java.lang.Class<T> provider)