tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject svn commit: r800275 - in /tuscany/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor: Monitor.java impl/MonitorImpl.java
Date Mon, 03 Aug 2009 09:55:43 GMT
Author: slaws
Date: Mon Aug  3 09:55:42 2009
New Revision: 800275

URL: http://svn.apache.org/viewvc?rev=800275&view=rev
Log:
A change I have sitting on my disc in case we decide do maintain content in the monitor. 

Modified:
    tuscany/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java
    tuscany/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/impl/MonitorImpl.java

Modified: tuscany/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java?rev=800275&r1=800274&r2=800275&view=diff
==============================================================================
--- tuscany/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java
(original)
+++ tuscany/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/Monitor.java
Mon Aug  3 09:55:42 2009
@@ -114,6 +114,22 @@
      */
     public abstract void popContext();
     
+    /**
+     * Remove all of the context strings from the 
+     * context stack
+     */
+    public abstract void clearContext();
+    
+    /**
+     * 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,
@@ -131,6 +147,16 @@
         }
     }
    
+    /**
+     * 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,

Modified: tuscany/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/impl/MonitorImpl.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/impl/MonitorImpl.java?rev=800275&r1=800274&r2=800275&view=diff
==============================================================================
--- tuscany/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/impl/MonitorImpl.java
(original)
+++ tuscany/java/sca/modules/monitor/src/main/java/org/apache/tuscany/sca/monitor/impl/MonitorImpl.java
Mon Aug  3 09:55:42 2009
@@ -124,4 +124,9 @@
     public void popContext() {
         contextStack.pop();
     }
+    
+    @Override
+    public void clearContext() {
+        contextStack.clear();  
+    }
 }



Mime
View raw message