Class Modules

  • All Implemented Interfaces:

    public class Modules
    extends java.lang.Object
    implements java.lang.Iterable<Module>
    Access for all modules declared, as well as what is enabled.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkEnabledModules()  
      void dump​(java.util.List<java.lang.String> tags)  
      void dumpEnabled()  
      java.util.Set<java.lang.String> enable​(java.lang.String name, java.lang.String enabledFrom)
      Enable a module
      Module get​(java.lang.String name)  
      java.util.List<Module> getEnabled()  
      java.util.Iterator<Module> iterator()  
      void registerAll()<Module> stream()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • dump

        public void dump​(java.util.List<java.lang.String> tags)
      • dumpEnabled

        public void dumpEnabled()
      • registerAll

        public void registerAll()
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • getEnabled

        public java.util.List<Module> getEnabled()
      • enable

        public java.util.Set<java.lang.String> enable​(java.lang.String name,
                                                      java.lang.String enabledFrom)
        Enable a module
        name - The name of the module to enable
        enabledFrom - The source the module was enabled from
        The set of modules newly enabled
      • get

        public Module get​(java.lang.String name)
      • iterator

        public java.util.Iterator<Module> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Module>
      • stream

        public<Module> stream()
      • checkEnabledModules

        public void checkEnabledModules()