Author: gnodet
Date: Tue Jul 1 10:39:58 2008
New Revision: 673153
URL: http://svn.apache.org/viewvc?rev=673153&view=rev
Log:
Fix proxy creation for the security stuff
Modified:
servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/security/AuthenticationService.java
servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/security/KeystoreInstance.java
servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/security/KeystoreManager.java
Modified:
servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/security/AuthenticationService.java
URL:
http://svn.apache.org/viewvc/servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/security/AuthenticationService.java?rev=673153&r1=673152&r2=673153&view=diff
==============================================================================
---
servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/security/AuthenticationService.java
(original)
+++
servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/security/AuthenticationService.java
Tue Jul 1 10:39:58 2008
@@ -44,7 +44,9 @@
public static final class Proxy {
public static AuthenticationService create(final Object target) {
- return (AuthenticationService)
java.lang.reflect.Proxy.newProxyInstance(null, new Class[] {
AuthenticationService.class }, new InvocationHandler() {
+ return (AuthenticationService)
java.lang.reflect.Proxy.newProxyInstance(AuthenticationService.class.getClassLoader(),
+
new Class[] { AuthenticationService.class },
+
new InvocationHandler() {
public Object invoke(Object proxy, Method method, Object[]
args) throws Throwable {
Object o = target.getClass().getMethod(method.getName(),
method.getParameterTypes()).invoke(proxy, args);
return o;
Modified:
servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/security/KeystoreInstance.java
URL:
http://svn.apache.org/viewvc/servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/security/KeystoreInstance.java?rev=673153&r1=673152&r2=673153&view=diff
==============================================================================
---
servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/security/KeystoreInstance.java
(original)
+++
servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/security/KeystoreInstance.java
Tue Jul 1 10:39:58 2008
@@ -57,7 +57,9 @@
public static final class Proxy {
public static KeystoreInstance create(final Object target) {
- return (KeystoreInstance)
java.lang.reflect.Proxy.newProxyInstance(null, new Class[] {
KeystoreInstance.class }, new InvocationHandler() {
+ return (KeystoreInstance)
java.lang.reflect.Proxy.newProxyInstance(AuthenticationService.class.getClassLoader(),
+
new Class[] { KeystoreInstance.class },
+
new InvocationHandler() {
public Object invoke(Object proxy, Method method, Object[]
args) throws Throwable {
Object o = target.getClass().getMethod(method.getName(),
method.getParameterTypes()).invoke(proxy, args);
return o;
Modified:
servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/security/KeystoreManager.java
URL:
http://svn.apache.org/viewvc/servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/security/KeystoreManager.java?rev=673153&r1=673152&r2=673153&view=diff
==============================================================================
---
servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/security/KeystoreManager.java
(original)
+++
servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/security/KeystoreManager.java
Tue Jul 1 10:39:58 2008
@@ -86,7 +86,9 @@
public static final class Proxy {
public static KeystoreManager create(final Object target) {
- return (KeystoreManager)
java.lang.reflect.Proxy.newProxyInstance(null, new Class[] {
KeystoreManager.class }, new InvocationHandler() {
+ return (KeystoreManager)
java.lang.reflect.Proxy.newProxyInstance(AuthenticationService.class.getClassLoader(),
+
new Class[] { KeystoreManager.class },
+
new InvocationHandler() {
public Object invoke(Object proxy, Method method, Object[]
args) throws Throwable {
Object o = target.getClass().getMethod(method.getName(),
method.getParameterTypes()).invoke(proxy, args);
if (method.getName().equals("getKeystore")) {