Revision 41985
Added by Nikon Gasparis about 8 years ago
modules/uoa-validator-service/trunk/src/main/java/eu/dnetlib/validator/service/impl/ValidatorManagerImpl.java | ||
---|---|---|
485 | 485 |
try { |
486 | 486 |
Class<?> clazz = Class.forName(classname); |
487 | 487 |
logger.debug("classname: "+clazz.getName()); |
488 |
return (Rule) clazz.getConstructor(new Class[]{Properties.class,Integer.TYPE}).newInstance(pros,id); |
|
488 |
Properties properties = new Properties(); |
|
489 |
properties.putAll(pros.getProperties()); |
|
490 |
return (Rule) clazz.getConstructor(new Class[]{Properties.class,Integer.TYPE}).newInstance(properties,id); |
|
489 | 491 |
|
490 | 492 |
} catch (Exception e) { |
491 | 493 |
logger.debug("error getting rule object: "+e); |
Also available in: Unified diff
Updated to convert CustomProperties to Properties while getting a rule