equal
deleted
inserted
replaced
18 * |
18 * |
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
21 |
21 |
22 /* |
22 /* |
23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
23 * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. |
24 * Use is subject to license terms. |
|
25 */ |
24 */ |
26 |
25 |
27 package org.opensolaris.os.rad; |
26 package org.opensolaris.os.rad; |
28 |
27 |
29 import java.lang.reflect.InvocationHandler; |
28 import java.lang.reflect.InvocationHandler; |
68 |
67 |
69 InvocationHandler handler = |
68 InvocationHandler handler = |
70 new CompositeDataInvocationHandler(payload_); |
69 new CompositeDataInvocationHandler(payload_); |
71 try { |
70 try { |
72 return (T)Proxy.newProxyInstance(c.getClassLoader(), |
71 return (T)Proxy.newProxyInstance(c.getClassLoader(), |
73 new Class[] { c }, handler); |
72 new Class<?>[] { c }, handler); |
74 } catch (Exception e) { |
73 } catch (Exception e) { |
75 return null; |
74 return null; |
76 } |
75 } |
77 } |
76 } |
78 } |
77 } |