1 /******************************************************************************* 2 * Copyright (c) 2015 LegSem. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the GNU Lesser Public License v2.1 5 * which accompanies this distribution, and is available at 6 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 * 8 * Contributors: 9 * LegSem - initial API and implementation 10 ******************************************************************************/ 11 package com.legstar.coxb.impl.convert; 12 13 import com.legstar.coxb.CobolContext; 14 import com.legstar.coxb.convert.ICobolConverters; 15 import com.legstar.coxb.convert.ICobolConvertersFactory; 16 import com.legstar.coxb.convert.simple.CobolSimpleConverters; 17 18 /** 19 * Provides a concrete implementation of COBOL converters. 20 * TODO Simple converters should be an optional implementation with the 21 * concrete class name coming from a configuration file. 22 * 23 */ 24 public class CobolConvertersFactory implements ICobolConvertersFactory { 25 26 /** {@inheritDoc} */ 27 public ICobolConverters createCobolConverters() { 28 return new CobolSimpleConverters(new CobolContext()); 29 } 30 31 /** {@inheritDoc} */ 32 public ICobolConverters createCobolConverters(final CobolContext cobolContext) { 33 return new CobolSimpleConverters(cobolContext); 34 } 35 36 }