Class NamedRegistry<T>

  • public class NamedRegistry<T>
    extends java.lang.Object
    A registry from String to some class implementation. Used to ensure implementations are registered only once.
    • Constructor Summary

      Constructor Description
      NamedRegistry​(java.lang.String targetName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <P> void extractAndRegister​(java.util.List<P> plugins, java.util.function.Function<P,​java.util.Map<java.lang.String,​T>> lookup)  
      java.util.Map<java.lang.String,​T> getRegistry()  
      void register​(java.lang.String name, T t)  
      • Methods inherited from class java.lang.Object

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

      • NamedRegistry

        public NamedRegistry​(java.lang.String targetName)
    • Method Detail

      • getRegistry

        public java.util.Map<java.lang.String,​T> getRegistry()
      • register

        public void register​(java.lang.String name,
                             T t)
      • extractAndRegister

        public <P> void extractAndRegister​(java.util.List<P> plugins,
                                           java.util.function.Function<P,​java.util.Map<java.lang.String,​T>> lookup)