synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject svn commit: r605150 - in /webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse: config/xml/POJOCommandMediatorFactory.java config/xml/POJOCommandMediatorSerializer.java mediators/builtin/CacheMediator.java
Date Tue, 18 Dec 2007 09:22:46 GMT
Author: ruwan
Date: Tue Dec 18 01:22:46 2007
New Revision: 605150

URL: http://svn.apache.org/viewvc?rev=605150&view=rev
Log:
Fixing document comments and the cache mediator

Modified:
    webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/POJOCommandMediatorFactory.java
    webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/POJOCommandMediatorSerializer.java
    webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/POJOCommandMediatorFactory.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/POJOCommandMediatorFactory.java?rev=605150&r1=605149&r2=605150&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/POJOCommandMediatorFactory.java
(original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/POJOCommandMediatorFactory.java
Tue Dec 18 01:22:46 2007
@@ -32,15 +32,19 @@
 
 /**
  * Creates an instance of a Class mediator using XML configuration specified
- * <p/>
+ *
  * <pre>
  * &lt;pojoCommand name=&quot;class-name&quot;&gt;
- *   &lt;property name=&quot;string&quot; value=&quot;literal&quot;
- *                action=(&quot;get&quot; | &quot;set&quot;)&gt;
+ *   &lt;property name=&quot;string&quot; value=&quot;literal&quot; expression=&quot;xpath&quot;?
+ *          context-name=&quot;string&quot;? &gt;
  *      either literal or XML child
  *   &lt;/property&gt;
  *   &lt;property name=&quot;string&quot; expression=&quot;XPATH expression&quot;
- *                action=(&quot;get&quot; | &quot;set&quot;)/&gt;
+ *                action=(&quot;ReadMessage&quot; | &quot;UpdateMessage&quot;
|
+ *                  &quot;ReadAndUpdateMessage&quot;) context-name=&quot;string&quot;?
/&gt;
+ *   &lt;property name=&quot;string&quot; context-name=&quot;string&quot;
+ *                action=(&quot;ReadContext&quot; | &quot;UpdateContext&quot;
|
+ *                  &quot;ReadAndUpdateContext&quot;) expression=&quot;XPATH
expression&quot;? /&gt;
  * &lt;/pojoCommand&gt;
  * </pre>
  */

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/POJOCommandMediatorSerializer.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/POJOCommandMediatorSerializer.java?rev=605150&r1=605149&r2=605150&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/POJOCommandMediatorSerializer.java
(original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/POJOCommandMediatorSerializer.java
Tue Dec 18 01:22:46 2007
@@ -31,10 +31,16 @@
  * <p/>
  * <pre>
  * &lt;pojoCommand name=&quot;class-name&quot;&gt;
- *   &lt;property name=&quot;string&quot; value=&quot;literal&quot;&gt;
+ *   &lt;property name=&quot;string&quot; value=&quot;literal&quot; expression=&quot;xpath&quot;?
+ *          context-name=&quot;string&quot;? &gt;
  *      either literal or XML child
  *   &lt;/property&gt;
- *   &lt;property name=&quot;string&quot; expression=&quot;XPATH expression&quot;/&gt;
+ *   &lt;property name=&quot;string&quot; expression=&quot;XPATH expression&quot;
+ *                action=(&quot;ReadMessage&quot; | &quot;UpdateMessage&quot;
|
+ *                  &quot;ReadAndUpdateMessage&quot;) context-name=&quot;string&quot;?
/&gt;
+ *   &lt;property name=&quot;string&quot; context-name=&quot;string&quot;
+ *                action=(&quot;ReadContext&quot; | &quot;UpdateContext&quot;
|
+ *                  &quot;ReadAndUpdateContext&quot;) expression=&quot;XPATH
expression&quot;? /&gt;
  * &lt;/pojoCommand&gt;
  * </pre>
  */

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java?rev=605150&r1=605149&r2=605150&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java
(original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java
Tue Dec 18 01:22:46 2007
@@ -213,7 +213,9 @@
                 // cachedObj.setResponseHash(cache.getGenerator().getDigest(
                 //     ((Axis2MessageContext) synCtx).getAxis2MessageContext()));
 
-                cachedObj.setExpireTimeMillis(System.currentTimeMillis() + cachedObj.getTimeout());
+                if (cachedObj.getTimeout() > 0) {
+                    cachedObj.setExpireTimeMillis(System.currentTimeMillis() + cachedObj.getTimeout());
+                }
 
                 cfgCtx.setProperty(cacheManagerKey, cacheManager);
                 Replicator.replicate(cfgCtx);



---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message