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

org.umlg.runtime.adaptor.UmlGIndexFactory 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 UmlGIndexFactory {

    private static UmlgIndexManager umlgIndexManager;

    @SuppressWarnings("unchecked")
    public static UmlgIndexManager getUmlgIndexManager() {
        if (umlgIndexManager == null) {
            try {
                Class factory = (Class) Class.forName("org.umlg.model.IndexCreator");
                umlgIndexManager = factory.newInstance();
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
        return umlgIndexManager;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy