host.anzo.commons.config.annotation.ConfigProperty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-core Show documentation
Show all versions of commons-core Show documentation
Commons library to make me happy.
package host.anzo.commons.config.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author ANZO
* @since 02.04.2017
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ConfigProperty {
String name();
String value() default "";
String[] values() default "";
String splitter() default ",";
long minValue() default Long.MIN_VALUE;
long maxValue() default Long.MAX_VALUE;
boolean isMap() default false;
boolean isLoadFromFile() default true;
}