Ejemplo n.º 1
0
 @StringSetter(EVENTS_FILE_FORMAT)
 private void setEventFileFormats(final String value) {
   String[] parts = StringUtils.explode(value, ',');
   Set<EventsFileFormat> formats = EnumSet.noneOf(EventsFileFormat.class);
   for (String part : parts) {
     String trimmed = part.trim();
     if (trimmed.length() > 0) {
       formats.add(EventsFileFormat.valueOf(trimmed));
     }
   }
   this.eventsFileFormats = formats;
 }