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, printList
addArgument, getArgument, getArguments, hasArgument, hasArgument, recognizeArguments
public ASModuleHandler(CommandContext ctx)
public boolean isAvailable(CommandContext ctx)
CommandHandler
isAvailable
in interface CommandHandler
isAvailable
in class CommandHandlerWithHelp
ctx
- current contextprotected void doHandle(CommandContext ctx) throws CommandLineException
doHandle
in class CommandHandlerWithHelp
CommandLineException
protected void addModule(CommandContext ctx, ParsedCommandLine parsedCmd) throws CommandLineException
CommandLineException
protected void deleteRecursively(File file) throws CommandLineException
CommandLineException
protected File getModulePath(File modulesDir, String moduleName, String slot) throws CommandLineException
CommandLineException
protected File getModulesDir() throws CommandLineException
CommandLineException
public static org.jboss.staxmapper.XMLExtendedStreamWriter create(XMLStreamWriter writer) throws CommandLineException
CommandLineException
public static void copy(File source, File target) throws CommandLineException
CommandLineException
Copyright © 2023 JBoss by Red Hat. All rights reserved.