Class Modules

  • All Implemented Interfaces:
    java.lang.Iterable<Module>

    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()  
      java.util.stream.Stream<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()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        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
        Parameters:
        name - The name of the module to enable
        enabledFrom - The source the module was enabled from
        Returns:
        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 java.util.stream.Stream<Module> stream()
      • checkEnabledModules

        public void checkEnabledModules()