Annotation Type SubSection


@Retention(RUNTIME) @Target({METHOD,TYPE_USE}) public @interface SubSection
Specifies either that the config entry is a configuration section, or that a generic parameter of a collection (a collection element or map value) is a configuration section.

Examples:
 
 public interface MyConfig {

   @SubSection
   ConfigSection mySubSection();

   @DefaultObject("com.mypackage.MyConfigDefaults.sectionMapDefaults") // See @DefaultObject
   Map<String, @SubSection ConfigSection> sectionMap();

   interface ConfigSection {

     @DefaultInteger(3)
     int someValue();

     @DefaultBoolean(true)
     boolean toggle();

   }
 }
 
 
Author:
A248