All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tngtech.configbuilder.annotation.valueextractor.CommandLineValue Maven / Gradle / Ivy

Go to download

The Config Builder creates fully configured instances of config classes, using values from various sources like properties files, command line arguments etc.

The newest version!
package com.tngtech.configbuilder.annotation.valueextractor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * This annotation is used to specify command line options.
* Usage: @CommandLineValue(shortOpt = "o", longOpt = "option") */ @ValueExtractorAnnotation(CommandLineValueProcessor.class) @Target(ElementType.FIELD) @Retention(RetentionPolicy.RUNTIME) public @interface CommandLineValue { String shortOpt(); String longOpt(); String description() default ""; boolean hasArg() default false; boolean required() default false; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy