[infinispan-commits] Infinispan SVN: r269 - trunk/core/src/main/java/org/infinispan/interceptors.
infinispan-commits at lists.jboss.org
infinispan-commits at lists.jboss.org
Wed May 13 01:36:41 EDT 2009
Author: mircea.markus
Date: 2009-05-13 01:36:41 -0400 (Wed, 13 May 2009)
New Revision: 269
Modified:
trunk/core/src/main/java/org/infinispan/interceptors/InvocationContextInterceptor.java
Log:
simplified
Modified: trunk/core/src/main/java/org/infinispan/interceptors/InvocationContextInterceptor.java
===================================================================
--- trunk/core/src/main/java/org/infinispan/interceptors/InvocationContextInterceptor.java 2009-05-13 04:31:16 UTC (rev 268)
+++ trunk/core/src/main/java/org/infinispan/interceptors/InvocationContextInterceptor.java 2009-05-13 05:36:41 UTC (rev 269)
@@ -23,62 +23,13 @@
import org.infinispan.commands.VisitableCommand;
-import org.infinispan.commands.tx.CommitCommand;
-import org.infinispan.commands.tx.PrepareCommand;
-import org.infinispan.commands.tx.RollbackCommand;
-import org.infinispan.commands.write.ClearCommand;
-import org.infinispan.commands.write.PutKeyValueCommand;
-import org.infinispan.commands.write.PutMapCommand;
-import org.infinispan.commands.write.RemoveCommand;
-import org.infinispan.commands.write.ReplaceCommand;
import org.infinispan.context.Flag;
import org.infinispan.context.InvocationContext;
-import org.infinispan.context.impl.TxInvocationContext;
import org.infinispan.interceptors.base.CommandInterceptor;
public class InvocationContextInterceptor extends CommandInterceptor {
@Override
- public Object visitPutMapCommand(InvocationContext ctx, PutMapCommand command) throws Throwable {
- return handleAll(ctx, command);
- }
-
- @Override
- public Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable {
- return handleAll(ctx, command);
- }
-
- @Override
- public Object visitClearCommand(InvocationContext ctx, ClearCommand command) throws Throwable {
- return handleAll(ctx, command);
- }
-
- @Override
- public Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command) throws Throwable {
- return handleAll(ctx, command);
- }
-
- @Override
- public Object visitReplaceCommand(InvocationContext ctx, ReplaceCommand command) throws Throwable {
- return handleAll(ctx, command);
- }
-
- @Override
- public Object visitPrepareCommand(TxInvocationContext ctx, PrepareCommand command) throws Throwable {
- return handleAll(ctx, command);
- }
-
- @Override
- public Object visitRollbackCommand(TxInvocationContext ctx, RollbackCommand command) throws Throwable {
- return handleAll(ctx, command);
- }
-
- @Override
- public Object visitCommitCommand(TxInvocationContext ctx, CommitCommand command) throws Throwable {
- return handleAll(ctx, command);
- }
-
- @Override
public Object handleDefault(InvocationContext ctx, VisitableCommand command) throws Throwable {
return handleAll(ctx, command);
}
@@ -102,8 +53,8 @@
return null;
} else {
log.error("Execution error: ", th);
+ throw th;
}
- throw th;
} finally {
ctx.reset();
}
More information about the infinispan-commits
mailing list