Code example for Constructor

Methods: getDeclaringClass, newInstance

0
 
		WidthCalculator widthCalc = createWidthCalculator();
		FeatureGenerator ret;
		Exception ex;
		try { 
			ret = this.featureGeneratorPrototypeContructor.newInstance(new Object[]{widthCalc, this.crs});
			return ret;
		} catch (IllegalArgumentException e) {
			ex = e;
		} catch (InstantiationException e) {
			ex = e;
		} catch (IllegalAccessException e) {
			ex = e;
		} catch (InvocationTargetException e) {
			ex = e;
		} 
		throw new RuntimeException(
				"Could not instantiate feature generator from prototype! " + this.featureGeneratorPrototypeContructor.getDeclaringClass().getCanonicalName(),
				ex);
	} 
 
	private WidthCalculator createWidthCalculator() { 
		WidthCalculator ret;