/*
 * generated by Xtext 2.9.2
 */
package com.justeat.mickeydb.idea;

import com.intellij.openapi.extensions.ExtensionFactory;
import com.justeat.mickeydb.idea.lang.MickeyLangLanguage;

public class MickeyLangExtensionFactory implements ExtensionFactory {
	@Override
	public Object createInstance(String factoryArgument, String implementationClass) {
		Class<?> clazz;
		try {
			clazz = Class.forName(implementationClass);
		} catch (ClassNotFoundException e) {
			throw new IllegalArgumentException("Couldn't load "+implementationClass, e);
		}
		return MickeyLangLanguage.INSTANCE.<Object> getInstance(clazz);
	}
}
