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

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

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

/**
 * Date: 2013/03/23
 * Time: 10:10 PM
 */
public class UmlgMetaNodeFactory {

    private static UmlgMetaNodeManager umlgMetaNodeManager;

    @SuppressWarnings("unchecked")
    public static UmlgMetaNodeManager getUmlgMetaNodeManager() {
        if (umlgMetaNodeManager == null) {
            try {
                Class factory = (Class) Class.forName("org.umlg.model.MetaNodeCreator");
                umlgMetaNodeManager = factory.newInstance();
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
        return umlgMetaNodeManager;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy