Bug 127861 [DataBinding] Mark API provisional
bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/converters/FunctionalConverter.java
private IConversionFunction targetToModel;
	private IConversionFunction modelToTarget;
	
	/**
	 * Constructs a Converter that looks up its target to model and model to target methods
	 * in the ConvertsionFunctionRegistry.
	 * 
	 * @param targetType The target type Class
	 * @param modelType The model type Class
	 */
	public FunctionalConverter(Class targetType, Class modelType) {
		super(targetType, modelType);
		targetToModel = ConversionFunctionRegistry.get(targetType, modelType);
		modelToTarget = ConversionFunctionRegistry.get(modelType, targetType);
	}
	/* (non-Javadoc)
	 * @see org.eclipse.jface.databinding.converter.IConverter#convertTargetToModel(java.lang.Object)
	 */
	public Object convertTargetToModel(Object targetObject) {
		return targetToModel.convert(targetObject);
	}
	/* (non-Javadoc)
	 * @see org.eclipse.jface.databinding.converter.IConverter#convertModelToTarget(java.lang.Object)
	 */
	public Object convertModelToTarget(Object modelObject) {
		return modelToTarget.convert(modelObject);
	}
}