Add a Software module.

@param createSoftwareModule
the module
554957
public void addSoftwareModule(final DmfSoftwareModule createSoftwareModule) {
        if (softwareModules == null) {
            softwareModules = new ArrayList<>();
        }

        softwareModules.add(createSoftwareModule);

    }
407535
public void addModuleToExport(final String moduleName) {

        if (m_modulesToExport == null) {
            m_modulesToExport = new HashSet<String>();
        }
        m_modulesToExport.add(moduleName);
    }
1325710
public function addModule($module, array $options = NULL) {
		$this->add_to_list($module, new $module($this->server, $this, $options));
    }
1334268
protected void initModule() {

        Object o;

        if (CmsStringUtil.isEmpty(getParamAction()) || CmsDialog.DIALOG_INITIAL.equals(getParamAction())) {
            // this is the initial dialog call
            if (CmsStringUtil.isNotEmpty(m_paramModule)) {
                // edit an existing module, get it from manager
                o = OpenCms.getModuleManager().getModule(m_paramModule);
            } else {
                // create a new module
                o = null;
            }
        } else {
            // this is not the initial call, get module from session
            o = getDialogObject();
        }

        if (!(o instanceof CmsModule)) {
            // create a new module
            m_module = new CmsModule();

        } else {
            // reuse module stored in session
            m_module = (CmsModule)((CmsModule)o).clone();
        }
    }
276367
private void createMainModule()
    {
        for (Plugin plugin : orderedPlugins)
        {
            moduleHandler.handleUnitModule(requestHandler, plugin);
            moduleHandler.handleOverridingUnitModule(requestHandler, plugin);
        }
        KernelGuiceModuleInternal kernelGuiceModuleInternal = new KernelGuiceModuleInternal(requestHandler);
        KernelGuiceModuleInternal internalKernelGuiceModuleOverriding = new KernelGuiceModuleInternal(requestHandler).overriding();
        mainModule = Modules.override(kernelGuiceModuleInternal).with(internalKernelGuiceModuleOverriding);
    }
221523
@Nullable
    public boolean addModuleSpec(ModuleSpec moduleSpec) {
        Objects.requireNonNull(moduleSpec, "moduleSpec");
        ModuleIdentifier revisionId = moduleSpec.getModuleIdentifier();
        boolean available = !moduleSpecs.containsKey(revisionId);
        if (available) {
            moduleSpecs.put(revisionId, moduleSpec);
        }
        return available;
    }
1263345
private void initializeModuleScope(Node moduleBody, Module module, TypedScope moduleScope) {
    if (module.metadata().isGoogModule()) {
      declareExportsInModuleScope(module, moduleBody, moduleScope);
      markGoogModuleExportsAsConst(module);
    }
  }
969055
def add_module(self, module_name, module_ui):
        
        m_button = tk.Label(self.module_selection, text=module_name, bg="white", anchor="w")
        m_button.grid(column=0, row=len(self.module_selection.winfo_children()), padx=0, pady=0, sticky="W E N S")

        self.module_buttons[module_name] = m_button
        m_button.bind("<Button-1>", lambda e: self.module_selected(module_name, module_ui))
1360971
public void populateSMMetadata(final SoftwareModule swModule) {
        removeAllItems();
        if (null == swModule) {
            return;
        }
        selectedSWModuleId = swModule.getId();
        final List<SoftwareModuleMetadata> swMetadataList = softwareModuleManagement
                .findMetaDataBySoftwareModuleId(PageRequest.of(0, MAX_METADATA_QUERY), selectedSWModuleId).getContent();
        if (!CollectionUtils.isEmpty(swMetadataList)) {
            swMetadataList.forEach(this::setMetadataProperties);
        }
    }
309182
public ModuleType<ApplicationType<T>> getOrCreateModule()
   {
      List<Node> nodeList = childNode.get("module");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new ModuleTypeImpl<ApplicationType<T>>(this, "module", childNode, nodeList.get(0));
      }
      return createModule();
   }
443405
protected void addModulePackagesIndex(Content body, ModuleElement mdle) {
        addModulePackagesIndexContents("doclet.Module_Summary",
                configuration.getText("doclet.Member_Table_Summary",
                configuration.getText("doclet.Module_Summary"),
                configuration.getText("doclet.modules")), body, mdle);
    }
1116067
public function addModule($moduleName, $modulePath = null, $namespace = null, $moduleContainerClass = null, array $moduleInfo = [])
    {
        if (is_null($namespace)) {
            $namespace = 'Modules\\'.$moduleName;
        }

        $namespace = trim($namespace, '\\');

        $customModuleClass = "\\$namespace\\ModuleContainer";

        if ($moduleName == 'App') {
            $customModuleClass = $this->applicationContainerClass;
        }

        if (is_null($moduleContainerClass) or class_exists($customModuleClass)) {
            $moduleContainerClass = $customModuleClass;
        }

        if (!class_exists($moduleContainerClass)) {
            $moduleContainerClass = class_exists($this->defaultContainerClass)
                ? $this->defaultContainerClass
                : \KodiCMS\ModulesLoader\ModuleContainer::class;
        }

        $moduleContainer = new $moduleContainerClass($moduleName, $modulePath, $namespace, $moduleInfo);

        $this->registerModule($moduleContainer);

        return $this;
    }
679005
public Governator addModules(Module ... modules) {
        if (modules != null) {
            this.modules.addAll(Arrays.asList(modules));
        }
        return this;
    }
299354
def registerAddonModule(cls, module):
        
        prop = '_{0}__addon_modules'.format(cls.__name__)
        mods = getattr(cls, prop, set())
        mods.add(module)
        setattr(cls, prop, mods)
592461
public void populateArtifactDetails(final SoftwareModule softwareModule) {
        if (softwareModule == null) {
            populateArtifactDetails(null, null);
        } else {
            populateArtifactDetails(softwareModule.getId(),
                    HawkbitCommonUtil.getFormattedNameVersion(softwareModule.getName(), softwareModule.getVersion()));
        }
    }
766089
protected Hibernate5Module createHibernate5Module() {
        Hibernate5Module module = new Hibernate5Module();
        if (lazyLoadingEnabled) {
            module.enable(Feature.FORCE_LAZY_LOADING);
        }
        return module;
    }
1326740
public void addModule(Module module) {
        PreconditionUtil.verify(!initialized, "CrnkClient already initialized, cannot add further modules");
        if (module instanceof HttpAdapterAware) {
            ((HttpAdapterAware) module).setHttpAdapter(getHttpAdapter());
        }
        this.moduleRegistry.addModule(module);
    }