Interface MutableModuleInfo

    • Method Detail

      • setModuleClass

        void setModuleClass​(Class<? extends Module> moduleClass)
        Sets the module class described by this ModuleInfo.
      • getModuleClass

        Class<? extends Module> getModuleClass()
        Gets the module class described by this ModuleInfo.
      • addInput

        void addInput​(ModuleItem<?> input)
        Adds an input to the list.
      • addOutput

        void addOutput​(ModuleItem<?> output)
        Adds an output to the list.
      • removeInput

        void removeInput​(ModuleItem<?> input)
        Removes an input from the list.
      • removeOutput

        void removeOutput​(ModuleItem<?> output)
        Removes an output from the list.
      • getDelegateClassName

        default String getDelegateClassName()
        Description copied from interface: ModuleInfo
        Gets the fully qualified name of the class containing the module's actual implementation. By definition, this is the same value returned by createModule().getDelegateObject().getClass().getName(), and hence is also the class containing any callback methods specified by ModuleItem.getCallback().

        The nature of this method is implementation-specific; for example, a CommandModule will return the class name of its associated Command. For modules that are not commands, the result may be something else.

        If you are implementing this interface directly, a good rule of thumb is to return the class name of the associated Module (i.e., the same value given by createModule().getClass().getName()).

        Specified by:
        getDelegateClassName in interface ModuleInfo