[jboss-cvs] JBossCache/src-50/org/jboss/cache/pojo/interceptors ...
Ben Wang
bwang at jboss.com
Thu Jul 13 11:56:12 EDT 2006
User: bwang
Date: 06/07/13 11:56:12
Modified: src-50/org/jboss/cache/pojo/interceptors
CheckIdInterceptor.java
CheckNonSerializableInterceptor.java
PojoEvictionInterceptor.java
Log:
Refctoring and moved some classes to impl dir.
Revision Changes Path
1.3 +3 -4 JBossCache/src-50/org/jboss/cache/pojo/interceptors/CheckIdInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CheckIdInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/interceptors/CheckIdInterceptor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- CheckIdInterceptor.java 6 Jul 2006 02:42:35 -0000 1.2
+++ CheckIdInterceptor.java 13 Jul 2006 15:56:12 -0000 1.3
@@ -9,12 +9,11 @@
import org.jboss.aop.joinpoint.Invocation;
import org.jboss.aop.joinpoint.MethodInvocation;
-import org.jboss.aop.advice.Interceptor;
import org.jboss.cache.Fqn;
-import org.jboss.cache.pojo.InternalDelegate;
+import org.jboss.cache.pojo.impl.InternalConstant;
/** Interceptor (done via aop advice) to check the validity of the id specified by the user.
- * @version $Id: CheckIdInterceptor.java,v 1.2 2006/07/06 02:42:35 bwang Exp $
+ * @version $Id: CheckIdInterceptor.java,v 1.3 2006/07/13 15:56:12 bwang Exp $
*/
public class CheckIdInterceptor extends AbstractInterceptor
{
@@ -39,7 +38,7 @@
{
// throws exception is fqn is JBossInternal
Fqn fqn = Fqn.fromString(id);
- if (fqn.equals(InternalDelegate.JBOSS_INTERNAL))
+ if (fqn.equals(InternalConstant.JBOSS_INTERNAL))
{
throw new IllegalArgumentException("CheckIdIntercepto.checkFqnValidity(): fqn is not valid: " + fqn);
}
1.2 +1 -3 JBossCache/src-50/org/jboss/cache/pojo/interceptors/CheckNonSerializableInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CheckNonSerializableInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/interceptors/CheckNonSerializableInterceptor.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- CheckNonSerializableInterceptor.java 13 Jul 2006 07:53:24 -0000 1.1
+++ CheckNonSerializableInterceptor.java 13 Jul 2006 15:56:12 -0000 1.2
@@ -9,12 +9,10 @@
import org.jboss.aop.joinpoint.Invocation;
import org.jboss.aop.joinpoint.MethodInvocation;
-import org.jboss.cache.Fqn;
-import org.jboss.cache.pojo.InternalDelegate;
import org.jboss.cache.pojo.util.AopUtil;
/** Interceptor (done via aop advice) to check the validity of the id specified by the user.
- * @version $Id: CheckNonSerializableInterceptor.java,v 1.1 2006/07/13 07:53:24 bwang Exp $
+ * @version $Id: CheckNonSerializableInterceptor.java,v 1.2 2006/07/13 15:56:12 bwang Exp $
*/
public class CheckNonSerializableInterceptor extends AbstractInterceptor
{
1.5 +2 -2 JBossCache/src-50/org/jboss/cache/pojo/interceptors/PojoEvictionInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PojoEvictionInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/interceptors/PojoEvictionInterceptor.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- PojoEvictionInterceptor.java 12 Jul 2006 13:28:25 -0000 1.4
+++ PojoEvictionInterceptor.java 13 Jul 2006 15:56:12 -0000 1.5
@@ -7,7 +7,7 @@
import org.jboss.cache.Fqn;
import org.jboss.cache.TreeCache;
import org.jboss.cache.pojo.PojoReference;
-import org.jboss.cache.pojo.InternalDelegate;
+import org.jboss.cache.pojo.impl.InternalHelper;
import org.jboss.cache.eviction.EvictedEventNode;
import org.jboss.cache.eviction.Region;
import org.jboss.cache.interceptors.EvictionInterceptor;
@@ -104,7 +104,7 @@
private static boolean isInternalNode(Fqn fqn)
{
- return InternalDelegate.isInternalNode(fqn);
+ return InternalHelper.isInternalNode(fqn);
}
class PojoGetNodeEvictionMethodHandler extends GetNodeEvictionMethodHandler
More information about the jboss-cvs-commits
mailing list