Update of 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/publisher/cache
In directory james.mmbase.org:/tmp/cvs-serv18934

Modified Files:
        CacheFactory.java CacheFreshTask.java CacheInfo.java 
Log Message:
CMSC-899,Check and improve all lists according to guideline,add Javadoc comment 
and delete tab character


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/publisher/cache
See also: http://www.mmbase.org/jira/browse/CMSC-899


Index: CacheFactory.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/publisher/cache/CacheFactory.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- CacheFactory.java   20 May 2008 05:21:29 -0000      1.2
+++ CacheFactory.java   22 Sep 2008 08:26:50 -0000      1.3
@@ -2,18 +2,18 @@
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-
+/**
+ * @author nikko yin
+ */
 public class CacheFactory {
 
        private static ICache cache = null;
-
-       /** */
+   private static final Log logger = LogFactory.getLog(CacheFactory.class);
        /**
         * get caches'cahe
         * @param caches
         * @return 
         */
-       private static final Log logger = LogFactory.getLog(CacheFactory.class);
 
        public static ICache getCacheInstance(Class caches) {
                if (cache == null) {
@@ -30,11 +30,19 @@
                }
                return cache;
        }
-
+   /**
+    * get time
+    * @param null
+    * @return 
+    */
        public static ICache getDefaultCache() {                
                return getDefaultCache(1800);
        }
-       
+   /**
+    * getDefaultCache
+    * @param time
+    * @return 
+    */
        public static ICache getDefaultCache(long time) {
                if (cache == null) {
                        cache = new DefaultCache(time);


Index: CacheFreshTask.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/publisher/cache/CacheFreshTask.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- CacheFreshTask.java 20 May 2008 05:09:21 -0000      1.1
+++ CacheFreshTask.java 22 Sep 2008 08:26:50 -0000      1.2
@@ -3,14 +3,23 @@
 import java.util.Iterator;
 import java.util.Map;
 import java.util.TimerTask;
-
+/**
+ * @author nikko yin
+ */
 public class CacheFreshTask extends TimerTask{
         private DefaultCache cache;
-        
+   /**
+    * FreshTask
+    * @param DefaultCache
+    * @return 
+    */
            public CacheFreshTask(DefaultCache cache) {
                this.cache = cache;
            }
-
+      /**
+       * Start Thread
+       * 
+       */
            public void run() {
                synchronized (cache.getDatas()) {
                    Iterator<Map.Entry<String, CacheInfo>> iterator


Index: CacheInfo.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/publisher/cache/CacheInfo.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- CacheInfo.java      20 May 2008 05:09:21 -0000      1.1
+++ CacheInfo.java      22 Sep 2008 08:26:50 -0000      1.2
@@ -1,29 +1,46 @@
 package com.finalist.newsletter.publisher.cache;
-
+/**
+ * @author nikko yin
+ */
 public class CacheInfo {
 
        private Object obj;
        private long secondsRemain;
        private long cacheSeconds;
-
+       /**
+           * CacheInfoBean
+           * @param bean and time
+           */
        public CacheInfo(Object obj, long cacheSeconds) {
                this.obj = obj;
                this.secondsRemain = cacheSeconds;
                this.cacheSeconds = cacheSeconds;
        }
-
+       /**
+       * getObjInfoBean
+       * @param null
+       */
        public Object getObj() {
                return obj;
        }
-
+       /**
+       * getSecondsRemain
+       * @param null
+       */
        public long getSecondsRemain() {
                return secondsRemain;
        }
-
+       /**
+       * getTotalSeconds
+       * @param null
+       */
        public long getTotalSeconds() {
                return cacheSeconds;
        }
-
+       /**
+       * setSecondsRemain
+       * @param null
+       */
        public void setSecondsRemain(long secondsRemain) {
                this.secondsRemain = secondsRemain;
        }
_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to