[jboss-cvs] JBossCache/src-50/org/jboss/cache/pojo/interceptors/dynamic ...
Ben Wang
bwang at jboss.com
Fri Jul 14 12:35:48 EDT 2006
User: bwang
Date: 06/07/14 12:35:48
Modified: src-50/org/jboss/cache/pojo/interceptors/dynamic
AbstractCollectionInterceptor.java
CachedListInterceptor.java
CachedMapInterceptor.java CachedSetInterceptor.java
Log:
Created a new AdvisedPojoHandler to handle specifically Advised pojo get/put/remove.
Revision Changes Path
1.3 +2 -2 JBossCache/src-50/org/jboss/cache/pojo/interceptors/dynamic/AbstractCollectionInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AbstractCollectionInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/interceptors/dynamic/AbstractCollectionInterceptor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- AbstractCollectionInterceptor.java 12 Jul 2006 13:28:25 -0000 1.2
+++ AbstractCollectionInterceptor.java 14 Jul 2006 16:35:48 -0000 1.3
@@ -14,7 +14,7 @@
* Abstract base class for collection interceptor.
*
* @author Ben Wang
- * @version $Id: AbstractCollectionInterceptor.java,v 1.2 2006/07/12 13:28:25 bwang Exp $
+ * @version $Id: AbstractCollectionInterceptor.java,v 1.3 2006/07/14 16:35:48 bwang Exp $
*/
@SuppressWarnings({"CanBeFinal"})
public abstract class AbstractCollectionInterceptor implements BaseInterceptor
@@ -76,5 +76,5 @@
abstract void setCacheCopy(Object obj);
abstract Object getCacheCopy();
abstract void setCurrentCopy(Object obj);
- abstract Object getCurrecntCopy();
+ public abstract Object getCurrecntCopy();
}
1.3 +9 -9 JBossCache/src-50/org/jboss/cache/pojo/interceptors/dynamic/CachedListInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CachedListInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/interceptors/dynamic/CachedListInterceptor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- CachedListInterceptor.java 13 Jul 2006 15:56:12 -0000 1.2
+++ CachedListInterceptor.java 14 Jul 2006 16:35:48 -0000 1.3
@@ -116,6 +116,11 @@
current_ = inMemImpl_;
}
+ public Object getCurrecntCopy()
+ {
+ return current_;
+ }
+
void setInMemoryCopy(Object obj)
{
inMemImpl_ = (List)obj;
@@ -126,24 +131,19 @@
return inMemImpl_;
}
- void setCacheCopy(Object obj)
- {
- cacheImpl_ = (List)obj;
- }
-
Object getCacheCopy()
{
return cacheImpl_;
}
- void setCurrentCopy(Object obj)
+ void setCacheCopy(Object obj)
{
- current_ = (List)obj;
+ cacheImpl_ = (List)obj;
}
- Object getCurrecntCopy()
+ void setCurrentCopy(Object obj)
{
- return current_;
+ current_ = (List)obj;
}
private void toMemory(boolean removeFromCache)
1.3 +5 -5 JBossCache/src-50/org/jboss/cache/pojo/interceptors/dynamic/CachedMapInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CachedMapInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/interceptors/dynamic/CachedMapInterceptor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- CachedMapInterceptor.java 13 Jul 2006 15:56:12 -0000 1.2
+++ CachedMapInterceptor.java 14 Jul 2006 16:35:48 -0000 1.3
@@ -65,6 +65,11 @@
setCacheCopy(interceptor.getCacheCopy());
}
+ public Object getCurrecntCopy()
+ {
+ return current_;
+ }
+
void setInMemoryCopy(Object obj)
{
inMemImpl_ = (Map)obj;
@@ -90,11 +95,6 @@
current_ = (Map)obj;
}
- Object getCurrecntCopy()
- {
- return current_;
- }
-
/**
* When we want to associate this proxy with the cache again. We will need to translate the in-memory
* content to the cache store first.
1.3 +5 -5 JBossCache/src-50/org/jboss/cache/pojo/interceptors/dynamic/CachedSetInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CachedSetInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/interceptors/dynamic/CachedSetInterceptor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- CachedSetInterceptor.java 13 Jul 2006 15:56:12 -0000 1.2
+++ CachedSetInterceptor.java 14 Jul 2006 16:35:48 -0000 1.3
@@ -66,6 +66,11 @@
setCacheCopy(interceptor.getCacheCopy());
}
+ public Object getCurrecntCopy()
+ {
+ return current_;
+ }
+
void setInMemoryCopy(Object obj)
{
inMemImpl_ = (Set)obj;
@@ -91,11 +96,6 @@
current_ = (Set)obj;
}
- Object getCurrecntCopy()
- {
- return current_;
- }
-
/**
* When we want to associate this proxy with the cache again. We will need to translate the in-memory
* content to the cache store first.
More information about the jboss-cvs-commits
mailing list