本文整理了Java中org.apache.axis2.i18n.Messages
类的一些代码示例,展示了Messages
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Messages
类的具体详情如下:
包路径:org.apache.axis2.i18n.Messages
类名称:Messages
暂无
代码示例来源:origin: org.apache.axis2/axis2-kernel
/**
* Get the version of this AXIS.
*
* @return the version of this axis2
*/
public static String getVersion() {
return Messages.getMessage("axisVersion") + "\n" +
Messages.getMessage("builtOn");
}
代码示例来源:origin: org.apache.sandesha2/sandesha2-core
public static void innit(){
MessageBundle bundle = new MessageBundle(
projectName,
rootPackageName,
resourceName,
locale,
SandeshaMessageHelper.class.getClassLoader(),
rootBundle);
Messages.addMessageBundle(msgBundleKey, bundle);
}
代码示例来源:origin: org.apache.axis2/axis2-kernel
public static MessageBundle getMessageBundle() {
return getMessageBundle(DEFAULT_MESSAGE_BUNDLE_KEY);
}
代码示例来源:origin: org.apache.sandesha2/sandesha2-core
/**
* Get a message from resource.properties from the package of the given object.
*
* @param key The resource key
* @return The formatted message
*/
public static String getMessage(String key)
throws MissingResourceException{
try{
return Messages.getMessageFromBundle(msgBundleKey, key);
}
catch(MissingResourceException e){
throw e;
}
catch(Exception e){
return null;
}
}
代码示例来源:origin: org.apache.sandesha2/sandesha2-core
/**
* Get a message from resource.properties from the package of the given object.
*
* @param key The resource key
* @param arg0 The argument to place in variable {0}
* @return The formatted message
*/
public static String getMessage(String key, String arg0)
throws MissingResourceException{
try{
return Messages.getMessageFromBundle(msgBundleKey, key, arg0);
}
catch(MissingResourceException e){
throw e;
}
catch(Exception e){
return null;
}
}
代码示例来源:origin: org.apache.axis2/axis2-kernel
/**
* Returns the Axis Version number and build date.
* <p/>
* Example output: 1.1 Jul 08, 2003 (09:00:12 EDT)
*
* @return the full version of this axis2
*/
public static String getVersionText() {
return Messages.getMessage("axisVersionRaw");
}
代码示例来源:origin: apache/axis2-java
public static MessageBundle getMessageBundle() {
return getMessageBundle(DEFAULT_MESSAGE_BUNDLE_KEY);
}
代码示例来源:origin: org.apache.sandesha2/sandesha2-core
/**
* Get a message from resource.properties from the package of the given object.
*
* @param key The resource key
* @param arg0 The argument to place in variable {0}
* @param arg1 The argument to place in variable {1}
* @return The formatted message
*/
public static String getMessage(String key, String arg0, String arg1)
throws MissingResourceException{
try{
return Messages.getMessageFromBundle(msgBundleKey, key, arg0, arg1);
}
catch(MissingResourceException e){
throw e;
}
catch(Exception e){
return null;
}
}
代码示例来源:origin: apache/axis2-java
/**
* Returns the Axis Version number and build date.
* <p/>
* Example output: 1.1 Jul 08, 2003 (09:00:12 EDT)
*
* @return the full version of this axis2
*/
public static String getVersionText() {
return Messages.getMessage("axisVersionRaw");
}
代码示例来源:origin: org.apache.axis2/axis2-kernel
/**
* Get a message from resource.properties from the package of the given object.
*
* @param key The resource key
* @param args An array of objects to place in corresponding variables
* @return The formatted message
*/
public static String getMessage(String key, String[] args)
throws MissingResourceException {
MessageBundle messageBundle = getMessageBundle(DEFAULT_MESSAGE_BUNDLE_KEY);
return messageBundle.getMessage(key, args);
}
代码示例来源:origin: org.apache.sandesha2/sandesha2-core
/**
* Get a message from resource.properties from the package of the given object.
*
* @param key The resource key
* @param arg0 The argument to place in variable {0}
* @param arg1 The argument to place in variable {1}
* @param arg2 The argument to place in variable {2}
* @return The formatted message
*/
public static String getMessage(String key, String arg0, String arg1, String arg2)
throws MissingResourceException{
try{
return Messages.getMessageFromBundle(msgBundleKey, key, arg0, arg1, arg2);
}
catch(MissingResourceException e){
throw e;
}
catch(Exception e){
return null;
}
}
代码示例来源:origin: apache/axis2-java
/**
* Get the version of this AXIS.
*
* @return the version of this axis2
*/
public static String getVersion() {
return Messages.getMessage("axisVersion") + "\n" +
Messages.getMessage("builtOn");
}
代码示例来源:origin: org.apache.axis2/axis2-kernel
/**
* Get a message from resource.properties from the package of the given object.
*
* @param key The resource key
* @param arg0 The argument to place in variable {0}
* @return The formatted message
*/
public static String getMessage(String key, String arg0)
throws MissingResourceException {
MessageBundle messageBundle = getMessageBundle(DEFAULT_MESSAGE_BUNDLE_KEY);
return messageBundle.getMessage(key, arg0);
}
代码示例来源:origin: org.apache.sandesha2/sandesha2-core
/**
* Get a message from resource.properties from the package of the given object.
*
* @param key The resource key
* @param arg0 The argument to place in variable {0}
* @param arg1 The argument to place in variable {1}
* @param arg2 The argument to place in variable {2}
* @param arg3 The argument to place in variable {3}
* @return The formatted message
*/
public static String getMessage(String key, String arg0, String arg1, String arg2, String arg3)
throws MissingResourceException{
try{
return Messages.getMessageFromBundle(msgBundleKey, key, arg0, arg1, arg2, arg3);
}
catch(MissingResourceException e){
throw e;
}
catch(Exception e){
return null;
}
}
代码示例来源:origin: org.apache.axis2/axis2-kernel
public OperationClient createClient(ServiceContext sc, Options options) {
throw new UnsupportedOperationException(
Messages.getMessage("mepnotyetimplemented", mepURI));
}
代码示例来源:origin: org.apache.axis2/axis2-kernel
/**
* Get a message from resource.properties from the package of the given object.
*
* @param key The resource key
* @return The formatted message
*/
public static String getMessage(String key)
throws MissingResourceException {
MessageBundle messageBundle = getMessageBundle(DEFAULT_MESSAGE_BUNDLE_KEY);
return messageBundle.getMessage(key);
}
代码示例来源:origin: org.apache.sandesha2/sandesha2-core
/**
* Get a message from resource.properties from the package of the given object.
*
* @param key The resource key
* @param arg0 The argument to place in variable {0}
* @param arg1 The argument to place in variable {1}
* @param arg2 The argument to place in variable {2}
* @param arg3 The argument to place in variable {3}
* @param arg4 The argument to place in variable {4}
* @return The formatted message
*/
public static String getMessage(String key, String arg0, String arg1, String arg2, String arg3, String arg4)
throws MissingResourceException{
try{
return Messages.getMessageFromBundle(msgBundleKey, key, arg0, arg1, arg2, arg3, arg4);
}
catch(MissingResourceException e){
throw e;
}
catch(Exception e){
return null;
}
}
代码示例来源:origin: org.apache.axis2/axis2-kernel
public OperationClient createClient(ServiceContext sc, Options options) {
throw new UnsupportedOperationException(
Messages.getMessage("mepnotyetimplemented", mepURI));
}
代码示例来源:origin: apache/axis2-java
/**
* Get a message from resource.properties from the package of the given object.
*
* @param key The resource key
* @param arg0 The argument to place in variable {0}
* @return The formatted message
*/
public static String getMessage(String key, String arg0)
throws MissingResourceException {
MessageBundle messageBundle = getMessageBundle(DEFAULT_MESSAGE_BUNDLE_KEY);
return messageBundle.getMessage(key, arg0);
}
代码示例来源:origin: org.apache.axis2/axis2-kernel
/**
* Sets the thread factory.
*
* @param pool The thread pool
* @throws AxisFault If a thread pool has already been set
*/
public void setThreadPool(ThreadFactory pool) throws AxisFault {
if (threadPool == null) {
threadPool = pool;
} else {
throw new AxisFault(Messages.getMessage("threadpoolset"));
}
}
内容来源于网络,如有侵权,请联系作者删除!