|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fhcrc.cpl.viewer.commandline.CommandLineModuleDiscoverer
public class CommandLineModuleDiscoverer
Utility class for finding all command-line modules. See comments on method discoverAllCommandLineModules() for important details.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
_log
|
protected static java.util.Map<java.lang.String,org.fhcrc.cpl.toolbox.commandline.CommandLineModule> |
allCommandLineModuleMap
|
static java.lang.String[] |
modulePackageDescriptionsLong
|
static java.lang.String[] |
modulePackageDescriptionsShort
|
static java.lang.String[] |
modulePackageIdentifiers
|
static java.lang.String[] |
modulePackageNames
|
| Constructor Summary | |
|---|---|
CommandLineModuleDiscoverer()
|
|
| Method Summary | |
|---|---|
protected static java.util.Map<java.lang.String,org.fhcrc.cpl.toolbox.commandline.CommandLineModule> |
discoverAllCommandLineModules()
Attempts to discover all the classes in the package org.fhcrc.cpl.viewer.commandline.modules, and other declared packages, that implement the CommandLineModule interface, as determined by the context class loader |
static java.util.Map<java.lang.String,org.fhcrc.cpl.toolbox.commandline.CommandLineModule> |
findAllCommandLineModules()
Return all known commandline modules, initializing if necessary |
static java.util.Map<java.lang.String,java.util.Map<java.lang.String,org.fhcrc.cpl.toolbox.commandline.CommandLineModule>> |
findAllCommandLineModulesByPackage()
Broken up by package. |
static org.fhcrc.cpl.toolbox.commandline.CommandLineModule |
getCommandLineModule(java.lang.String command)
Return the commandline module for the specified command. |
static java.lang.String |
getPackageIdentifier(java.lang.String packageName)
This could be implemented much more efficiently |
static java.lang.String |
getPackageLongDescription(java.lang.String packageName)
This could be implemented much more efficiently |
static java.lang.String |
getPackageShortDescription(java.lang.String packageName)
This could be implemented much more efficiently |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger _log
protected static java.util.Map<java.lang.String,org.fhcrc.cpl.toolbox.commandline.CommandLineModule> allCommandLineModuleMap
public static final java.lang.String[] modulePackageNames
public static final java.lang.String[] modulePackageIdentifiers
public static final java.lang.String[] modulePackageDescriptionsShort
public static final java.lang.String[] modulePackageDescriptionsLong
| Constructor Detail |
|---|
public CommandLineModuleDiscoverer()
| Method Detail |
|---|
public static java.util.Map<java.lang.String,org.fhcrc.cpl.toolbox.commandline.CommandLineModule> findAllCommandLineModules()
public static java.util.Map<java.lang.String,java.util.Map<java.lang.String,org.fhcrc.cpl.toolbox.commandline.CommandLineModule>> findAllCommandLineModulesByPackage()
public static java.lang.String getPackageShortDescription(java.lang.String packageName)
packageName -
public static java.lang.String getPackageIdentifier(java.lang.String packageName)
packageName -
public static java.lang.String getPackageLongDescription(java.lang.String packageName)
packageName -
protected static java.util.Map<java.lang.String,org.fhcrc.cpl.toolbox.commandline.CommandLineModule> discoverAllCommandLineModules()
public static org.fhcrc.cpl.toolbox.commandline.CommandLineModule getCommandLineModule(java.lang.String command)
throws java.io.FileNotFoundException
command -
java.io.FileNotFoundException - if no module exists for the specified command
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||