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

com.genexus.specific.java.Messages Maven / Gradle / Ivy

Go to download

Core classes for the runtime used by Java and Android apps generated with GeneXus

There is a newer version: 4.7.3
Show newest version
package com.genexus.specific.java;

import java.io.InputStream;

import com.genexus.ModelContext;
import com.genexus.common.interfaces.IExtensionMessages;

public class Messages implements IExtensionMessages {

	@Override
	public InputStream getInputStream(String resourceName) {
		try
		{
			Class gxcfg = ModelContext.getModelContextPackageClass();
			if (gxcfg.getName().startsWith("com.genexus.gx.deployment."))
				gxcfg = Class.forName(com.genexus.GXutil.getClassName("GXcfg"));

			return gxcfg.getResourceAsStream(resourceName);
		}
		catch(ClassNotFoundException e)
		{
			System.err.println(e.toString());
			return null;
		}
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy