File tree 2 files changed +12
-0
lines changed
domain/src/main/java/org/jboss/as/deployment/module
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 23
23
package org .jboss .as .deployment .module ;
24
24
25
25
import org .jboss .modules .Module ;
26
+ import org .jboss .modules .ModuleIdentifier ;
26
27
import org .jboss .modules .ModuleLoader ;
27
28
import org .jboss .modules .ModuleSpec ;
28
29
@@ -41,6 +42,13 @@ public abstract class DeploymentModuleLoader extends ModuleLoader {
41
42
*/
42
43
public abstract void addModuleSpec (ModuleSpec moduleSpec );
43
44
45
+ /**
46
+ * Remove a module spec from the module loader.
47
+ *
48
+ * @param moduleId The identifier of the module spec to be removed
49
+ */
50
+ public abstract ModuleSpec removeModuleSpec (ModuleIdentifier moduleId );
51
+
44
52
/**
45
53
* Remove a module from the module loader.
46
54
*
Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ public void addModuleSpec(ModuleSpec moduleSpec) {
48
48
}
49
49
}
50
50
51
+ public ModuleSpec removeModuleSpec (ModuleIdentifier moduleId ) {
52
+ return moduleSpecs .remove (moduleId );
53
+ }
54
+
51
55
@ Override
52
56
protected Module preloadModule (final ModuleIdentifier identifier ) throws ModuleLoadException {
53
57
if (identifier .getName ().startsWith ("deployment." )) {
You can’t perform that action at this time.
0 commit comments