Package com.sun.enterprise.admin.cli
Class AdminMain
- java.lang.Object
-
- com.sun.enterprise.admin.cli.AdminMain
-
public class AdminMain extends Object
The admin main program (nadmin).
-
-
Constructor Summary
Constructors Constructor Description AdminMain()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intdoMain(String[] args)intexecuteCommand(String[] argv)protected StringgetCommandName()protected Set<File>getExtensions()Get set of JAR files that is used to locate local commands (CLICommand).static FilegetJarForClass(Class cls)Returns source JAR file for given class.static voidmain(String[] args)
-
-
-
Field Detail
-
logger
protected Logger logger
-
-
Method Detail
-
getExtensions
protected Set<File> getExtensions()
Get set of JAR files that is used to locate local commands (CLICommand). Results can contain JAR files or directories where all JAR files are used. It must return all JARs or directories with acceptable CLICommands excluding admin-cli.jar. Default implementation returns INSTALL_ROOT_PROPERTY/lib/asadmin- Returns:
- set of JAR files or directories with JAR files
-
getCommandName
protected String getCommandName()
-
main
public static void main(String[] args)
-
doMain
protected int doMain(String[] args)
-
executeCommand
public int executeCommand(String[] argv)
-
-