org.wildfly.extras.creaper.commands.modules
Class RemoveModule

java.lang.Object
  extended by org.wildfly.extras.creaper.commands.modules.RemoveModule
All Implemented Interfaces:
Command, OnlineCommand

public final class RemoveModule
extends Object
implements OnlineCommand

Removes a module (in the JBoss Modules sense) from the module repository. The module.xml file and other resources will be removed from the module repository as well as the directory structure up to the point where other modules meet.


Field Summary
 
Fields inherited from interface org.wildfly.extras.creaper.core.online.OnlineCommand
NOOP
 
Constructor Summary
RemoveModule(String moduleName)
           
RemoveModule(String moduleName, String slot)
           
 
Method Summary
 void apply(OnlineCommandContext ctx)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoveModule

public RemoveModule(String moduleName)
Parameters:
moduleName - the name of the module to be removed (assumes the main slot)

RemoveModule

public RemoveModule(String moduleName,
                    String slot)
Parameters:
moduleName - the name of the module to be removed
slot - specifies a slot which should be removed
Method Detail

apply

public void apply(OnlineCommandContext ctx)
           throws Exception
Specified by:
apply in interface OnlineCommand
Throws:
Exception

toString

public String toString()
Specified by:
toString in interface OnlineCommand
Overrides:
toString in class Object


Copyright © 2016. All rights reserved.