private String _schemaNamesList;
//-------------------------------------------------------------------------
@Override
public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
DbToolContext dbToolContext = new DbToolContext();
Map<String, MetaProperty<?>> mapTarget = new HashMap<String, MetaProperty<?>>(dbToolContext.metaBean().metaPropertyMap());
mapTarget.keySet().retainAll(this.metaBean().metaPropertyMap().keySet());
for (MetaProperty<?> mp : mapTarget.values()) {
mp.set(dbToolContext, mp.get(this));
}
final String catalog = getCatalog(getJdbcUrl());
if (catalog != null) {
dbToolContext.setCatalog(catalog);
}
if (getSchemaNamesList() != null) {
Set<String> schemaGroups = new HashSet<String>();
for (String schemaGroup : getSchemaNamesList().split(",")) {
schemaGroups.add(schemaGroup.toLowerCase().trim());
}
dbToolContext.setSchemaNames(schemaGroups);
}
repo.registerComponent(DbToolContext.class, getClassifier(), dbToolContext);
}