org.mule.config.i18n.Message.getMessage()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(282)

本文整理了Java中org.mule.config.i18n.Message.getMessage()方法的一些代码示例,展示了Message.getMessage()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.getMessage()方法的具体详情如下:
包路径:org.mule.config.i18n.Message
类名称:Message
方法名:getMessage

Message.getMessage介绍

暂无

代码示例

代码示例来源:origin: org.mule/mule-core

@Override
protected String generateMessage(Message message)
{
  return message.getMessage();
}

代码示例来源:origin: org.mule/mule-core

/**
 * @param message the exception message
 * @param cause the exception that triggered this exception
 */
public MuleRuntimeException(Message message, Throwable cause)
{
  super(message.getMessage(), cause);
}

代码示例来源:origin: org.mule/mule-core

public String toString()
  {
    return this.getMessage();
  }
}

代码示例来源:origin: org.mule/mule-core

/**
 * @param message the exception message
 */
public MuleRuntimeException(Message message)
{
  super(message.getMessage());
}

代码示例来源:origin: org.mule/mule-core

@Override
public DataHandler put(String key, DataHandler value)
{
  throw new UnsupportedOperationException(CoreMessages.inboundMessageAttachmentsImmutable(key)
    .getMessage());
}

代码示例来源:origin: org.mule/mule-core

private ExpressionEvaluator getExpressionEvaluator(String evaluator)
{
  ExpressionEvaluator extractor = (ExpressionEvaluator) evaluators.get(evaluator);
  if (extractor == null)
  {
    throw new IllegalArgumentException(CoreMessages.expressionEvaluatorNotRegistered(evaluator)
                          .getMessage());
  }
  return extractor;
}

代码示例来源:origin: org.mule/mule-core

private boolean validateNewWatermarkValue(Object value)
{
  if (value == null)
  {
    if (logger.isInfoEnabled())
    {
      logger.info(CoreMessages.nullWatermark().getMessage());
    }
    return false;
  }
  return true;
}

代码示例来源:origin: org.mule/mule-core

public void setMuleContext(MuleContext context)
{
  if (context == null)
  {
    throw new IllegalArgumentException(CoreMessages.objectIsNull("muleContext").getMessage());
  }
  muleContext = context;
}

代码示例来源:origin: org.mule/mule-core

@Override
  public void clear()
  {
    throw new UnsupportedOperationException(CoreMessages.inboundMessageAttachmentsImmutable()
      .getMessage());
  }
}

代码示例来源:origin: org.mule/mule-core

protected void setMessage(Message message)
{
  initialise();
  this.message = message.getMessage();
  i18nMessage = message;
}

代码示例来源:origin: org.mule/mule-core

@Override
public DataHandler remove(Object key)
{
  throw new UnsupportedOperationException(CoreMessages.inboundMessageAttachmentsImmutable(key)
    .getMessage());
}

代码示例来源:origin: org.mule/mule-core

public static String removeExpressionMarker(String expression)
{
  if (expression == null)
  {
    throw new IllegalArgumentException(CoreMessages.objectIsNull("expression").getMessage());
  }
  if (expression.startsWith(DEFAULT_EXPRESSION_PREFIX))
  {
    expression = expression.substring(2, expression.length() - 1);
  }
  return expression;
}

代码示例来源:origin: org.mule/mule-core

protected  KeyStore loadKeyStore() throws GeneralSecurityException, IOException
{
  KeyStore tempKeyStore = KeyStore.getInstance(keystoreType);
  InputStream is = IOUtils.getResourceAsStream(keyStoreName, getClass());
  if (null == is)
  {
    throw new FileNotFoundException(
      cannotLoadFromClasspath("Keystore: " + keyStoreName).getMessage());
  }
  tempKeyStore.load(is, keyStorePassword.toCharArray());
  return tempKeyStore;
}

代码示例来源:origin: org.mule/mule-core

protected void doHeader(MuleContext context)
  {
    long currentTime = System.currentTimeMillis();
    header.add(CoreMessages.shutdownNormally(new Date()).getMessage());
    long duration = 10;
    if (context.getStartDate() > 0)
    {
      duration = currentTime - context.getStartDate();
    }
    header.add(CoreMessages.serverWasUpForDuration(duration).getMessage());
  }
}

代码示例来源:origin: org.mule/mule-core

protected void doHeader(MuleContext context)
  {
    long currentTime = System.currentTimeMillis();
    header.add(CoreMessages.applicationShutdownNormally(context.getConfiguration().getId(), new Date()).getMessage());
    long duration = 10;
    if (context.getStartDate() > 0)
    {
      duration = currentTime - context.getStartDate();
    }
    header.add(CoreMessages.applicationWasUpForDuration(duration).getMessage());
  }
}

代码示例来源:origin: org.mule/mule-core

@Override
  public void assignValue(String name, T value, T newValue)
  {
    throw new ImmutableElementException(
      CoreMessages.expressionFinalVariableCannotBeAssignedValue(name).getMessage());
  }
});

代码示例来源:origin: org.mule/mule-core

@Override
  public void assignValue(String name, T value, T newValue)
  {
    throw new ImmutableElementException(
      CoreMessages.expressionFinalVariableCannotBeAssignedValue(name).getMessage());
  }
});

代码示例来源:origin: org.mule/mule-core

@Override
public void clear()
{
  if (PropertyScope.INBOUND.equals(propertyScope))
  {
    throw new UnsupportedOperationException(CoreMessages.inboundMessagePropertiesImmutable()
      .getMessage());
  }
  message.clearProperties(propertyScope);
}

代码示例来源:origin: org.mule.modules/mule-module-spring-config

public void setAsText(String text)
  {

    Connector connector = muleContext.getRegistry().lookupConnector(text);

    if (connector == null)
    {
      throw new IllegalArgumentException(CoreMessages.objectNotRegistered("Connector", text).getMessage());
    }
    setValue(connector);
  }
}

代码示例来源:origin: org.mule/mule-core

public static Message version()
{
  String version = StringUtils.defaultString(MuleManifest.getProductVersion(), notSet().getMessage());
  return factory.createMessage(BUNDLE_PATH, 6, version);
}

相关文章