Class RegistryBuilder


  • public final class RegistryBuilder
    extends java.lang.Object
    Used to construct the IoC Registry. This class is not thread-safe. The Registry, once created, is thread-safe.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RegistryBuilder add​(java.lang.Class... moduleClasses)
      Adds a number of modules (as module classes) to the registry, returning the builder for further configuration.
      RegistryBuilder add​(java.lang.String classname)
      Adds a modle class (specified by fully qualified class name) to the registry, returning the builder for further configuration.
      RegistryBuilder add​(ModuleDef moduleDef)
      Adds a ModuleDef to the registry, returning the builder for further configuration.
      Registry build()
      Constructs and returns the registry; this may only be done once.
      static Registry buildAndStartupRegistry​(java.lang.Class... moduleClasses)
      Constructs the registry, adds a number of modules (as module classes) to the registry and performs registry startup.
      static Registry buildAndStartupRegistry​(ModuleDef moduleDef, java.lang.Class... moduleClasses)
      Constructs the registry, adds a ModuleDef and a number of modules (as module classes) to the registry and performs registry startup.
      java.lang.ClassLoader getClassLoader()  
      org.slf4j.Logger getLogger()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait