Class ModuleRegister

    • Field Detail

      • set

        protected final Set<Class<? extends com.google.inject.Module>> set
      • isInit

        protected boolean isInit
    • Constructor Detail

      • ModuleRegister

        @Inject
        public ModuleRegister​(ModuleList finder)
        Constructs and populates the ModuleRegister.
        Parameters:
        finder - the module finder to be used
    • Method Detail

      • iterator

        public Iterator<Class<? extends com.google.inject.Module>> iterator()
        Specified by:
        iterator in interface Iterable<Class<? extends com.google.inject.Module>>
      • size

        public int size()
        Returns the number of found modules.
        Returns:
        the number of found modules
        See Also:
        HashSet.size()
      • get

        public PropertyModule get​(Class<? extends com.google.inject.Module> clazz)
        Returns the PropertyModule of the specified class and creates a new instance if necessary.
        Parameters:
        clazz - the class of the module
        Returns:
        the property module