![JAR search and dependency download from the Maven repository](/logo.png)
com.legstar.coxb.convert.CobolConvertersFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of legstar-coxbapi Show documentation
Show all versions of legstar-coxbapi Show documentation
Cobol Transformers Application Programming Interface.
The newest version!
/*******************************************************************************
* Copyright (c) 2015 LegSem.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* Contributors:
* LegSem - initial API and implementation
******************************************************************************/
package com.legstar.coxb.convert;
import com.legstar.coxb.util.ClassLoadingException;
import com.legstar.coxb.util.ClassUtil;
/**
* Concrete converter factories are hidden behind this factory. This allow the
* API to be independent from concrete implementation of COBOL converters.
*
*/
public final class CobolConvertersFactory {
/**
* In this version the factory name is hardcoded. In a future release,
* this will be pulled from some configuration file.
*/
private static final String FACTORY_NAME =
"com.legstar.coxb.impl.convert.CobolConvertersFactory";
/**
* It is a utility class. Prevent instantiation.
*/
private CobolConvertersFactory() {
}
/**
* @return an implementation of a concrete factory.
* @throws ClassLoadingException if factory cannot be created
*/
public static ICobolConvertersFactory createCobolConvertersFactory()
throws ClassLoadingException {
Object of = ClassUtil.newObject(FACTORY_NAME);
return (ICobolConvertersFactory) of;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy