|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.hk2.generator.HabitatGenerator
public class HabitatGenerator
This is a command line (or embedded) utility that will generate habitat files based on @Service annotations.
Field Summary | |
---|---|
static String |
FILE_ARG
The flag for the location of the file |
static String |
LOCATOR_ARG
The flag for the name of the locator |
static String |
NOSWAP_ARG
This option will write files in-place, which is quicker but will remove existing files prior to writing new ones |
static String |
OUTJAR_ARG
The name of the JAR file to write to (defaults to input file, ignored if input file is directory) |
static String |
SEARCHPATH_ARG
The path-separator delimited list of files to search for contracts and qualifiers (defaults to classpath) |
static String |
VERBOSE_ARG
The flag for verbosity |
Method Summary | |
---|---|
static int |
embeddedMain(String[] argv)
A utility to generate inhabitants files. |
static void |
main(String[] argv)
This method will call System.exit() with a 0 on success and non-zero on failure |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FILE_ARG
public static final String LOCATOR_ARG
public static final String VERBOSE_ARG
public static final String OUTJAR_ARG
public static final String SEARCHPATH_ARG
public static final String NOSWAP_ARG
Method Detail |
---|
public static int embeddedMain(String[] argv)
HabitatGenerator [--file jarFileOrDirectory] [--searchPath path-separator-delimited-classpath] [--outjar jarfile] [--locator locatorName] [--verbose]
If the input file is a directory then the output file will go into META-INF/locatorName in the original directoryIf the input file is a jar file then the output file will go into the JAR file under META-INF/locatorName, overwriting any file that was previously in that location
--outjar only works if the file being added to is a JAR file, in which case this is the name of the output jar file that should be written. This defaults to the input jar file itself if not specified. If specified and the jarFileOrDirectory parameter is a directory then this parameter is ignored
argv
- The set of command line arguments
public static void main(String[] argv)
argv
- The arguments to the command (see embeddedMain)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |