Author: manik.surtani(a)jboss.com
Date: 2008-06-17 19:31:37 -0400 (Tue, 17 Jun 2008)
New Revision: 5998
Modified:
core/trunk/src/main/java/org/jboss/cache/interceptors/PessimisticLockInterceptor.java
core/trunk/src/main/java/org/jboss/cache/interceptors/base/PostProcessingCommandInterceptor.java
Log:
Filled in missing visitXXX methods and bad method signatures
Modified:
core/trunk/src/main/java/org/jboss/cache/interceptors/PessimisticLockInterceptor.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/interceptors/PessimisticLockInterceptor.java 2008-06-17
17:03:13 UTC (rev 5997)
+++
core/trunk/src/main/java/org/jboss/cache/interceptors/PessimisticLockInterceptor.java 2008-06-17
23:31:37 UTC (rev 5998)
@@ -290,7 +290,7 @@
}
@Override
- protected Object handleRemoveDataCommand(InvocationContext ctx, ClearDataCommand
command) throws Throwable
+ protected Object handleClearDataCommand(InvocationContext ctx, ClearDataCommand
command) throws Throwable
{
lockManager.lockPessimistically(ctx, command.getFqn(), WRITE, false, false, false,
false, null, false);
return invokeNextInterceptor(ctx, command);
Modified:
core/trunk/src/main/java/org/jboss/cache/interceptors/base/PostProcessingCommandInterceptor.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/interceptors/base/PostProcessingCommandInterceptor.java 2008-06-17
17:03:13 UTC (rev 5997)
+++
core/trunk/src/main/java/org/jboss/cache/interceptors/base/PostProcessingCommandInterceptor.java 2008-06-17
23:31:37 UTC (rev 5998)
@@ -13,15 +13,7 @@
import org.jboss.cache.commands.tx.OptimisticPrepareCommand;
import org.jboss.cache.commands.tx.PrepareCommand;
import org.jboss.cache.commands.tx.RollbackCommand;
-import org.jboss.cache.commands.write.EvictCommand;
-import org.jboss.cache.commands.write.InvalidateCommand;
-import org.jboss.cache.commands.write.MoveCommand;
-import org.jboss.cache.commands.write.PutDataMapCommand;
-import org.jboss.cache.commands.write.PutForExternalReadCommand;
-import org.jboss.cache.commands.write.PutKeyValueCommand;
-import org.jboss.cache.commands.write.ClearDataCommand;
-import org.jboss.cache.commands.write.RemoveKeyCommand;
-import org.jboss.cache.commands.write.RemoveNodeCommand;
+import org.jboss.cache.commands.write.*;
/**
* This interceptor will call {@link
#doAfterCall(org.jboss.cache.InvocationContext,org.jboss.cache.commands.VisitableCommand)}
after invoking each visit method
@@ -113,11 +105,30 @@
}
@Override
+ public final Object visitCreateNodeCommand(InvocationContext ctx, CreateNodeCommand
command) throws Throwable
+ {
+ try
+ {
+ return handleCreateNodeCommand(ctx, command);
+ }
+ finally
+ {
+ doAfterCall(ctx, command);
+ }
+ }
+
+ protected Object handleCreateNodeCommand(InvocationContext ctx, CreateNodeCommand
command) throws Throwable
+ {
+ return handleDefault(ctx, command);
+ }
+
+
+ @Override
public final Object visitClearDataCommand(InvocationContext ctx, ClearDataCommand
command) throws Throwable
{
try
{
- return handleRemoveDataCommand(ctx, command);
+ return handleClearDataCommand(ctx, command);
}
finally
{
@@ -125,7 +136,7 @@
}
}
- protected Object handleRemoveDataCommand(InvocationContext ctx, ClearDataCommand
command) throws Throwable
+ protected Object handleClearDataCommand(InvocationContext ctx, ClearDataCommand
command) throws Throwable
{
return handleDefault(ctx, command);
}
Show replies by date