本文整理了Java中org.apache.tuscany.sca.monitor.Monitor.getSourceClassName()
方法的一些代码示例,展示了Monitor.getSourceClassName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Monitor.getSourceClassName()
方法的具体详情如下:
包路径:org.apache.tuscany.sca.monitor.Monitor
类名称: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 =
内容来源于网络,如有侵权,请联系作者删除!