Created
July 29, 2010 08:40
-
-
Save CliveEvans/497637 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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