}
@Override
protected AbstractConfiguration getConfiguration()
{
AbstractConfiguration config;
final Properties parameters = new Properties();
parameters.setProperty("key1", "value1");
parameters.setProperty("key2", "value2");
parameters.setProperty("list", "value1, value2");
parameters.setProperty("listesc", "value1\\,value2");
if (supportsApplet)
{
Applet applet = new Applet()
{
/**
* Serial version UID.
*/
private static final long serialVersionUID = 1L;
@Override
public String getParameter(String key)
{
return parameters.getProperty(key);
}
@Override
public String[][] getParameterInfo()
{
return new String[][]
{
{ "key1", "String", "" },
{ "key2", "String", "" },
{ "list", "String[]", "" },
{ "listesc", "String", "" } };
}
};
config = new AppletConfiguration(applet);
}
else
{
config = new MapConfiguration(parameters);
}
config.setListDelimiterHandler(new DefaultListDelimiterHandler(','));
return config;
}