public class ASModuleHandler extends CommandHandlerWithHelp
helpArg| Constructor and Description |
|---|
ASModuleHandler(CommandContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addModule(CommandContext ctx,
ParsedCommandLine parsedCmd) |
static void |
copy(File source,
File target) |
static org.jboss.staxmapper.XMLExtendedStreamWriter |
create(XMLStreamWriter writer) |
protected void |
deleteRecursively(File file) |
protected void |
doHandle(CommandContext ctx) |
protected File |
getModulePath(File modulesDir,
String moduleName,
String slot) |
protected File |
getModulesDir() |
boolean |
isAvailable(CommandContext ctx)
Checks whether the command is available in the current context
(e.g.
|
handle, isBatchMode, printHelp, printListaddArgument, getArgument, getArguments, hasArgument, hasArgument, recognizeArgumentspublic ASModuleHandler(CommandContext ctx)
public boolean isAvailable(CommandContext ctx)
CommandHandlerisAvailable in interface CommandHandlerisAvailable in class CommandHandlerWithHelpctx - current contextprotected void doHandle(CommandContext ctx) throws CommandLineException
doHandle in class CommandHandlerWithHelpCommandLineExceptionprotected void addModule(CommandContext ctx, ParsedCommandLine parsedCmd) throws CommandLineException
CommandLineExceptionprotected void deleteRecursively(File file) throws CommandLineException
CommandLineExceptionprotected File getModulePath(File modulesDir, String moduleName, String slot) throws CommandLineException
CommandLineExceptionprotected File getModulesDir() throws CommandLineException
CommandLineExceptionpublic static org.jboss.staxmapper.XMLExtendedStreamWriter create(XMLStreamWriter writer) throws CommandLineException
CommandLineExceptionpublic static void copy(File source, File target) throws CommandLineException
CommandLineExceptionCopyright © 2014 JBoss by Red Hat. All rights reserved.