org.glassfish.scripting.rails.Messages Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grizzly-jruby-module Show documentation
Show all versions of grizzly-jruby-module Show documentation
JRuby container and deployer for GlassFish v3
package org.glassfish.scripting.rails;
import java.util.ResourceBundle;
import java.text.MessageFormat;
/**
* @author Vivek Pandey
*/
public class Messages {
/** Loads a string resource and formats it with specified arguments. */
static String format( String property, Object... args ) {
String text = ResourceBundle.getBundle(Messages.class.getPackage().getName() +".MessageBundle").getString(property);
return MessageFormat.format(text,args);
}
static final String ERR_CREATING_RAILSADAPTOR =
"railsapplication.adaptor.creation.error";
static final String ERR_STOPPING_RAILSAPP =
"railsapplication.error.stopping";
static final String ERR_JRUBYLIB_NOTFOUND =
"railsapplication.jrubylib.notfound";
static final String ERR_JRUBYHOME_NULL =
"railsapplication.jrubyhome.null";
static final String ERR_INVALID_RUNTIMES =
"railsapplication.runtimes.invalid";
static final String ERR_INVALID_RUNTIMES_MIN =
"railsapplication.runtimes.min.invalid";
static final String ERR_INVALID_RUNTIMES_MAX =
"railsapplication.runtimes.max.invalid";
static final String INFO_LOADING_APP =
"railsdeployer.loading.info";
static final String ERR_REGISTRY_RAILSAPP =
"railsdeployer.adapter.registry.err";
static final String ERR_UNLOAD_APP =
"railsdeployer.unload.err";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy