this.synthesizerImpl = value.toString();
}
final Class clazz = Class.forName(this.synthesizerImpl);
this.synthesizer = (MethodSynthesizer) clazz.getConstructor(ClassLoader.class).newInstance(classLoader);
} else {
throw new UnableToCreateInstanceException("MethodSynthesizer",
"Unable to create [" + value + "] implementation: "
+ "configuration not recognizer (Must be either: "
+ "MethodSynthesizer instance, or full class name as string, "
+ "or one of the following markers: "
+ new ArrayList<String>(FACTORY.keySet()).toString() + ")", null);
}
}
}
} catch (UnableToCreateInstanceException rethrow) {
throw rethrow;
} catch (Exception exp) {
throw new UnableToCreateInstanceException("MethodSynthesizer",
"Unable to create [" + this.synthesizerImpl + "] implementation: "
+ exp.getMessage(), exp);
} finally {
lock.unlock();
}