incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kelv...@apache.org
Subject git commit: Accissibility fix when invoking callback method
Date Fri, 04 Jan 2013 01:56:30 GMT
Updated Branches:
  refs/heads/javelin 3435ee060 -> ed17281f0


Accissibility fix when invoking callback method


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/ed17281f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/ed17281f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/ed17281f

Branch: refs/heads/javelin
Commit: ed17281f0d240fb1d8ad056dc92ceca04d345cd4
Parents: 3435ee0
Author: Kelven Yang <kelveny@gmail.com>
Authored: Thu Jan 3 17:55:47 2013 -0800
Committer: Kelven Yang <kelveny@gmail.com>
Committed: Thu Jan 3 17:55:47 2013 -0800

----------------------------------------------------------------------
 .../framework/async/AsyncCallFuture.java           |    3 ++-
 .../framework/async/AsyncCallbackDispatcher.java   |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/ed17281f/framework/ipc/src/org/apache/cloudstack/framework/async/AsyncCallFuture.java
----------------------------------------------------------------------
diff --git a/framework/ipc/src/org/apache/cloudstack/framework/async/AsyncCallFuture.java
b/framework/ipc/src/org/apache/cloudstack/framework/async/AsyncCallFuture.java
index 67e8822..57489ff 100644
--- a/framework/ipc/src/org/apache/cloudstack/framework/async/AsyncCallFuture.java
+++ b/framework/ipc/src/org/apache/cloudstack/framework/async/AsyncCallFuture.java
@@ -22,7 +22,7 @@ import java.util.concurrent.Future;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
 
-public class AsyncCallFuture<T> implements Future<T> {
+public class AsyncCallFuture<T> implements Future<T>, AsyncCompletionCallback<T>
{
 
 	Object _completed = new Object();
 	boolean _done = false;
@@ -72,6 +72,7 @@ public class AsyncCallFuture<T> implements Future<T> {
 		return _done;
 	}
 
+	@Override
 	public void complete(T resultObject) {
 		_resultObject = resultObject;
 		synchronized(_completed) {

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/ed17281f/framework/ipc/src/org/apache/cloudstack/framework/async/AsyncCallbackDispatcher.java
----------------------------------------------------------------------
diff --git a/framework/ipc/src/org/apache/cloudstack/framework/async/AsyncCallbackDispatcher.java
b/framework/ipc/src/org/apache/cloudstack/framework/async/AsyncCallbackDispatcher.java
index 71fe6f0..26f46da 100644
--- a/framework/ipc/src/org/apache/cloudstack/framework/async/AsyncCallbackDispatcher.java
+++ b/framework/ipc/src/org/apache/cloudstack/framework/async/AsyncCallbackDispatcher.java
@@ -61,6 +61,7 @@ public class AsyncCallbackDispatcher<T, R> implements AsyncCompletionCallback
{
             public Object intercept(Object arg0, Method arg1, Object[] arg2,
                 MethodProxy arg3) throws Throwable {
                 _callbackMethod = arg1;
+                _callbackMethod.setAccessible(true);
                 return null;
             }
         }, 


Mime
View raw message