{
log.error("Not a ValueStoragePlugin object IGNORED: " + o);
continue;
}
ValueStoragePlugin plugin = (ValueStoragePlugin) o;
// init filters
ArrayList<ValuePluginFilter> filters = new ArrayList<ValuePluginFilter>();
List<ValueStorageFilterEntry> filterEntries = storageEntry.getFilters();
for (ValueStorageFilterEntry filterEntry : filterEntries)
{
ValuePluginFilter filter =
new ValuePluginFilter(PropertyType.valueFromName(filterEntry.getPropertyType()), null, null,
filterEntry.getMinValueSize());
filters.add(filter);
}
// init properties
Properties props = new Properties();
List<SimpleParameterEntry> paramEntries = storageEntry.getParameters();
for (SimpleParameterEntry paramEntry : paramEntries)
{
props.setProperty(paramEntry.getName(), paramEntry.getValue());
}
plugin.init(props, resorcesHolder);
plugin.setId(storageEntry.getId());
plugin.setFilters(filters);
add(plugin);
log.info("Value Storage Plugin initialized " + plugin);
}
}