parser.xmlConfig.setExecutableValidation(value);
}
applySimpleConfig(parser.xmlConfig, targetConfig);
parser.bootstrap = new BootstrapConfigurationImpl(
parser.xmlConfig.getDefaultProvider(),
parser.xmlConfig.getConstraintValidatorFactory(),
parser.xmlConfig.getMessageInterpolator(),
parser.xmlConfig.getTraversableResolver(),
parser.xmlConfig.getParameterNameProvider(),
new CopyOnWriteArraySet<String>(parser.xmlConfig.getConstraintMapping()),
parser.xmlConfig.getExecutableValidation().getEnabled(),
new CopyOnWriteArraySet<ExecutableType>(targetConfig.getExecutableValidation()),
toMap(parser.xmlConfig.getProperty()));
return parser;
} else { // default config
final CopyOnWriteArraySet<ExecutableType> executableTypes = new CopyOnWriteArraySet<ExecutableType>();
executableTypes.add(ExecutableType.CONSTRUCTORS);
executableTypes.add(ExecutableType.NON_GETTER_METHODS);
parser.bootstrap = new BootstrapConfigurationImpl(
null, null, null, null, null,
new CopyOnWriteArraySet<String>(),
true,
executableTypes,
new HashMap<String, String>());