Skip to content

Instantly share code, notes, and snippets.

@CliveEvans
Created July 29, 2010 08:40
Show Gist options
  • Save CliveEvans/497637 to your computer and use it in GitHub Desktop.
Save CliveEvans/497637 to your computer and use it in GitHub Desktop.
public class StringArrayConfigurationEntry extends AbstractConfigurationEntry<String[]> {
public StringArrayConfigurationEntry(String name) {
super(name);
}
@Override
public boolean invalid(String[] value) {
return false;
}
@SuppressWarnings("unchecked")
@Override
protected void loadValueFromProperties(Configuration configuration) throws ConfigurationEntryException {
List<String> list = configuration.getList(name);
value = new String[list.size()];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment