org.apache.tuscany.sca.monitor.Monitor.getSourceClassName()方法的使用及代码示例

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

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

Monitor.getSourceClassName介绍

暂无

代码示例

代码示例来源:origin: org.apache.tuscany.sca/tuscany-monitor

/**
 * A utility function for raising an error. It creates the problem and 
 * adds it to the monitor
 * 
 * @param monitor
 * @param reportingObject
 * @param messageBundle
 * @param messageId
 * @param exception
 */
public static void warning (Monitor monitor, 
             Object reportingObject,
             String messageBundle,
             String messageId, 
             Throwable cause){
  String contextClassName = getSourceClassName(reportingObject);
  if (monitor != null) {
    Problem problem =
      monitor.createProblem(contextClassName,
                 messageBundle,
                 Severity.WARNING,
                 reportingObject,
                 messageId,
                 cause);
    monitor.problem(problem);
  } else {
    logNullMonitor(messageId, contextClassName);
  }
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

/**
 * A utility function for raising a warning. It creates the problem and 
 * adds it to the monitor
 * 
 * @param monitor
 * @param reportingObject
 * @param messageBundle
 * @param messageId
 * @param messageParameters
 */
public static void warning (Monitor monitor, 
              Object reportingObject,
              String messageBundle,
              String messageId, 
              Object... messageParameters){
  String contextClassName = getSourceClassName(reportingObject);
  if (monitor != null) {
    Problem problem =
      monitor.createProblem(contextClassName,
                 messageBundle,
                 Severity.WARNING,
                 reportingObject,
                 messageId,
                 messageParameters);
    monitor.problem(problem);
  } else {
    logNullMonitor(messageId, contextClassName);
  }
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-monitor

/**
 * A utility function for raising an error. It creates the problem and 
 * adds it to the monitor
 * 
 * @param monitor
 * @param reportingObject
 * @param messageBundle
 * @param messageId
 * @param messageParameters
 */
public static void error (Monitor monitor, 
             Object reportingObject,
             String messageBundle,
             String messageId, 
             Object... messageParameters){
  String contextClassName = getSourceClassName(reportingObject);
  if (monitor != null) {
    Problem problem =
      monitor.createProblem(contextClassName,
                 messageBundle,
                 Severity.ERROR,
                 reportingObject,
                 messageId,
                 messageParameters);
    monitor.problem(problem);
  } else {
    logNullMonitor(messageId, contextClassName);
  }
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-monitor

Throwable cause,
           Object... messageParameters) {
String contextClassName = getSourceClassName(reportingObject);
if (monitor != null) {
  Problem problem =

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

/**
 * A utility function for raising an error. It creates the problem and 
 * adds it to the monitor
 * 
 * @param monitor
 * @param reportingObject
 * @param messageBundle
 * @param messageId
 * @param messageParameters
 */
public static void error (Monitor monitor, 
             Object reportingObject,
             String messageBundle,
             String messageId, 
             Object... messageParameters){
  String contextClassName = getSourceClassName(reportingObject);
  if (monitor != null) {
    Problem problem =
      monitor.createProblem(contextClassName,
                 messageBundle,
                 Severity.ERROR,
                 reportingObject,
                 messageId,
                 messageParameters);
    monitor.problem(problem);
  } else {
    logNullMonitor(messageId, contextClassName);
  }
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

/**
 * A utility function for raising an error. It creates the problem and 
 * adds it to the monitor
 * 
 * @param monitor
 * @param reportingObject
 * @param messageBundle
 * @param messageId
 * @param exception
 */
public static void error (Monitor monitor, 
             Object reportingObject,
             String messageBundle,
             String messageId, 
             Throwable cause){
  String contextClassName = getSourceClassName(reportingObject);
  if (monitor != null) {
    Problem problem =
      monitor.createProblem(contextClassName,
                 messageBundle,
                 Severity.ERROR,
                 reportingObject,
                 messageId,
                 cause);
    monitor.problem(problem);
  } else {
    logNullMonitor(messageId, contextClassName);
  }
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-monitor

/**
 * A utility function for raising an error. It creates the problem and 
 * adds it to the monitor
 * 
 * @param monitor
 * @param reportingObject
 * @param messageBundle
 * @param messageId
 * @param exception
 */
public static void error (Monitor monitor, 
             Object reportingObject,
             String messageBundle,
             String messageId, 
             Throwable cause){
  String contextClassName = getSourceClassName(reportingObject);
  if (monitor != null) {
    Problem problem =
      monitor.createProblem(contextClassName,
                 messageBundle,
                 Severity.ERROR,
                 reportingObject,
                 messageId,
                 cause);
    monitor.problem(problem);
  } else {
    logNullMonitor(messageId, contextClassName);
  }
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

/**
 * A utility function for raising an error. It creates the problem and 
 * adds it to the monitor
 * 
 * @param monitor
 * @param reportingObject
 * @param messageBundle
 * @param messageId
 * @param exception
 */
public static void warning (Monitor monitor, 
             Object reportingObject,
             String messageBundle,
             String messageId, 
             Throwable cause){
  String contextClassName = getSourceClassName(reportingObject);
  if (monitor != null) {
    Problem problem =
      monitor.createProblem(contextClassName,
                 messageBundle,
                 Severity.WARNING,
                 reportingObject,
                 messageId,
                 cause);
    monitor.problem(problem);
  } else {
    logNullMonitor(messageId, contextClassName);
  }
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-monitor

/**
 * A utility function for raising a warning. It creates the problem and 
 * adds it to the monitor
 * 
 * @param monitor
 * @param reportingObject
 * @param messageBundle
 * @param messageId
 * @param messageParameters
 */
public static void warning (Monitor monitor, 
              Object reportingObject,
              String messageBundle,
              String messageId, 
              Object... messageParameters){
  String contextClassName = getSourceClassName(reportingObject);
  if (monitor != null) {
    Problem problem =
      monitor.createProblem(contextClassName,
                 messageBundle,
                 Severity.WARNING,
                 reportingObject,
                 messageId,
                 messageParameters);
    monitor.problem(problem);
  } else {
    logNullMonitor(messageId, contextClassName);
  }
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-monitor

Throwable cause,
           Object... messageParameters) {
String contextClassName = getSourceClassName(reportingObject);
if (monitor != null) {
  Problem problem =

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

Throwable cause,
           Object... messageParameters) {
String contextClassName = getSourceClassName(reportingObject);
if (monitor != null) {
  Problem problem =

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

Throwable cause,
           Object... messageParameters) {
String contextClassName = getSourceClassName(reportingObject);
if (monitor != null) {
  Problem problem =

相关文章