Annotation Type Setting


@Retention(RUNTIME)
@Target({FIELD,METHOD})
public @interface Setting
Mark settings which should be set by the corresponding named value from a configuration file.
Since:
2.0.0
Author:
Reiner Jung
  • Optional Element Summary

    Optional Elements 
    Modifier and Type Optional Element Description
    java.lang.Class<?> classMapping  
    java.lang.Class<? extends com.beust.jcommander.IStringConverter<?>> converter  
    boolean required
    Whether this option is required.
    java.lang.Class<? extends com.beust.jcommander.converters.IParameterSplitter> splitter  
    java.lang.Class<? extends com.beust.jcommander.IValueValidator>[] validators
    Validate the value for this parameter.
    boolean variableArity  
  • Element Details

    • converter

      java.lang.Class<? extends com.beust.jcommander.IStringConverter<?>> converter
      Default:
      com.beust.jcommander.converters.NoConverter.class
    • variableArity

      boolean variableArity
      Returns:
      true if this parameter has a variable arity. See @{IVariableArity}
      Default:
      false
    • required

      boolean required
      Whether this option is required.
      Default:
      false
    • classMapping

      java.lang.Class<?> classMapping
      Default:
      kieker.tools.settings.NoClassMapping.class
    • validators

      java.lang.Class<? extends com.beust.jcommander.IValueValidator>[] validators
      Validate the value for this parameter.
      Default:
      {com.beust.jcommander.validators.NoValueValidator.class}
    • splitter

      java.lang.Class<? extends com.beust.jcommander.converters.IParameterSplitter> splitter
      Default:
      com.beust.jcommander.converters.CommaParameterSplitter.class