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

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

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

Monitor.createProblem介绍

[英]Create a new problem.
[中]制造一个新问题。

代码示例

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

private void error(Monitor monitor, String message, Object model, Exception ex) {
  if (monitor != null) {
    Problem problem =
      monitor.createProblem(this.getClass().getName(),
                 "contribution-validation-messages",
                 Severity.ERROR,
                 model,
                 message,
                 ex);
    monitor.problem(problem);
  }
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-binding-ws-wsdlgen

/**
 * Report a fatal error.
 * @param message
 * @param binding
 * @param exception
 */
private static void fatal(Monitor monitor, String message, WebServiceBinding wsBinding, String... messageParameters) {
  Problem problem = monitor.createProblem(BindingWSDLGenerator.class.getName(), "wsdlgen-validation-messages", Severity.ERROR,wsBinding, message, (Object[])messageParameters);
  throw new WSDLGenerationException(problem.toString(), null, problem);
}

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

private void warning(Monitor monitor, String message, Object model, Object... messageParameters) {
  if (monitor != null) {
    Problem problem =
      monitor.createProblem(this.getClass().getName(),
                 "impl-widget-validation-messages",
                 Severity.WARNING,
                 model,
                 message,
                 (Object[])messageParameters);
    monitor.problem(problem);
  }
}

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

/**
 * Report a fatal error.
 * @param message
 * @param binding
 * @param parameters
 */
private void fatal(String message, Interface interfaze, String... messageParameters) {
  Problem problem = monitor.createProblem(this.getClass().getName(), "wsdlgen-validation-messages", Severity.ERROR, interfaze, message, (Object[])messageParameters);
  throw new WSDLGenerationException(problem.toString(), null, problem);
}

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

private void warn(Monitor monitor, String message, Object model, Object... messageParameters) {
  if (monitor != null) {
    Problem problem =
      monitor.createProblem(this.getClass().getName(),
                 Messages.RESOURCE_BUNDLE,
                 Severity.WARNING,
                 model,
                 message,
                 messageParameters);
    monitor.problem(problem);
  }
}

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

/**
 * Report a fatal error.
 * @param message
 * @param binding
 * @param exception
 */
private static void fatal(Monitor monitor, String message, WebServiceBinding wsBinding, String... messageParameters) {
  Problem problem = monitor.createProblem(BindingWSDLGenerator.class.getName(), "wsdlgen-validation-messages", Severity.ERROR,wsBinding, message, (Object[])messageParameters);
  throw new WSDLGenerationException(problem.toString(), null, problem);
}

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

/**
 * Report a fatal exception error.
 * @param message
 * @param binding
 * @param exception
 */
private static void fatal(Monitor monitor, String message, WebServiceBinding wsBinding, Exception ex) {
  Problem problem = monitor.createProblem(BindingWSDLGenerator.class.getName(), "wsdlgen-validation-messages", Severity.ERROR, wsBinding, message, ex);
  throw new WSDLGenerationException(problem.toString(), ex, problem);
}

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

private void warning(Monitor monitor, String message, Object model, Object... messageParameters) {
  if (monitor != null) {
    Problem problem =
      monitor.createProblem(this.getClass().getName(),
                 "impl-widget-validation-messages",
                 Severity.WARNING,
                 model,
                 message,
                 (Object[])messageParameters);
    monitor.problem(problem);
  }
}

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

private void error(Monitor monitor, String message, Object model, Exception ex) {
  if (monitor != null) {
    Problem problem =
      monitor.createProblem(this.getClass().getName(),
                 "contribution-validation-messages",
                 Severity.ERROR,
                 model,
                 message,
                 ex);
    monitor.problem(problem);
  }
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-binding-ws-wsdlgen

/**
 * Report a fatal error.
 * @param message
 * @param binding
 * @param parameters
 */
private void fatal(String message, Interface interfaze, String... messageParameters) {
  Problem problem = monitor.createProblem(this.getClass().getName(), "wsdlgen-validation-messages", Severity.ERROR, interfaze, message, (Object[])messageParameters);
  throw new WSDLGenerationException(problem.toString(), null, problem);
}

代码示例来源:origin: org.apache.tuscany.sca/tuscany-binding-ws-wsdlgen

/**
 * Report a fatal exception error.
 * @param message
 * @param binding
 * @param exception
 */
private static void fatal(Monitor monitor, String message, WebServiceBinding wsBinding, Exception ex) {
  Problem problem = monitor.createProblem(BindingWSDLGenerator.class.getName(), "wsdlgen-validation-messages", Severity.ERROR, wsBinding, message, ex);
  throw new WSDLGenerationException(problem.toString(), ex, problem);
}

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

/**
 * Report a error.
 * 
 * @param problems
 * @param message
 * @param model
 */
 private void error(Monitor monitor, String message, Object model, Object... messageParameters) {
   if (monitor != null) {
    Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-java-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
    monitor.problem(problem);
   }
 }

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

/**
 * Report a warning.
 *
 * @param problems
 * @param message
 * @param model
 */
 private void error(Monitor monitor, String message, Object model, Object... messageParameters) {
   if (monitor != null) {
    Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-namespace-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
    monitor.problem(problem);
   }
 }

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

/**
 * Report a warning.
 * 
 * @param problems
 * @param message
 * @param model
 */
private void warning(Monitor monitor, String message, Object model, Object... messageParameters) {
  if (monitor != null) {
    Problem problem = monitor.createProblem(this.getClass().getName(), "interface-wsdlxml-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
    monitor.problem(problem);
  }
 }

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

/**
* Report a exception.
* 
* @param problems
* @param message
* @param model
*/
private void error(Monitor monitor, String message, Object model, Exception ex) {
  if (monitor != null) {
    Problem problem = monitor.createProblem(this.getClass().getName(), "interface-wsdlxml-validation-messages", Severity.ERROR, model, message, ex);
    monitor.problem(problem);
  }        
}

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

/**
 * Report a warning.
 *
 * @param problems
 * @param message
 * @param model
 */
 private void error(Monitor monitor, String message, Object model, Object... messageParameters) {
   if (monitor != null) {
    Problem problem = monitor.createProblem(this.getClass().getName(), "contribution-namespace-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
    monitor.problem(problem);
   }
 }

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

/**
 * Report a error.
 * 
 * @param problems
 * @param message
 * @param model
 */
private void error(Monitor monitor, String message, Object model, Object... messageParameters) {
  if (monitor != null) {
    Problem problem = monitor.createProblem(this.getClass().getName(), "binding-wsxml-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
    monitor.problem(problem);
  }        
}

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

/**
 * Report an exception.
 * 
 * @param problem
 * @param model
 * @param exception
 */
private void error(Monitor monitor, String message, Object model, Exception ex) {
  if (monitor != null) {
    Problem problem = monitor.createProblem(this.getClass().getName(), "binding-wsxml-validation-messages", Severity.ERROR, model, message, ex);
    monitor.problem(problem);
  }        
}

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

/**
 * Report a error.
 * 
 * @param problems
 * @param message
 * @param model
*/
private void warning(Monitor monitor, String message, Object model, Object... messageParameters) {
  if (monitor != null) {
    Problem problem = monitor.createProblem(this.getClass().getName(), "binding-jms-validation-messages", Severity.WARNING, model, message, (Object[])messageParameters);
    monitor.problem(problem);
  }        
}

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

/**
 * Report a error.
 * 
 * @param problems
 * @param message
 * @param model
 */
private void error(Monitor monitor, String message, Object model, Object... messageParameters) {
   if (monitor != null) {
      Problem problem = monitor.createProblem(this.getClass().getName(), "impl-bpel-validation-messages", Severity.ERROR, model, message, (Object[])messageParameters);
      monitor.problem(problem);
   }
}

相关文章