All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.umlg.runtime.adaptor.UmlgSchemaFactory Maven / Gradle / Ivy

There is a newer version: 2.0.16
Show newest version
package org.umlg.runtime.adaptor;

import java.lang.reflect.Method;

/**
 * Date: 2013/03/29
 * Time: 9:09 AM
 */
public class UmlgSchemaFactory {

    private static UmlgSchemaMap umlgSchemaUtil;

    @SuppressWarnings("unchecked")
    public static UmlgSchemaMap getUmlgSchemaMap() {
        if (umlgSchemaUtil == null) {
            try {
                Class factory = (Class) Class.forName("org.umlg.runtime.adaptor.UmlgSchemaMapImpl");
                Method m = factory.getDeclaredMethod("getInstance", new Class[0]);
                umlgSchemaUtil = (UmlgSchemaMap) m.invoke(null);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
        return umlgSchemaUtil;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy