Use the unbounded attribute to specify a multi-valued property, and use the cardinality attribute to limit the number of entries.
@Property(unbounded = PropertyUnbounded.ARRAY, cardinality=10, label = "Some Label") private static final String MULTI_PROPERTY = "config.multiproperty";
To read an array of properties, you can use the #toStringArray() Method PropertiesUtil
PropertiesUtil.toStringArray(properties.get(MULTI_PROPERTY));
source share