usr/src/java/rad/org/opensolaris/os/rad/jmx/RadNotification.java
changeset 764 ebb25c1dac73
parent 391 71abce159a62
equal deleted inserted replaced
763:94428b581c8c 764:ebb25c1dac73
    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.jmx;
    26 package org.opensolaris.os.rad.jmx;
    28 
    27 
    29 import java.lang.reflect.InvocationHandler;
    28 import java.lang.reflect.InvocationHandler;
    64 
    63 
    65 	InvocationHandler handler =
    64 	InvocationHandler handler =
    66 	    new CompositeDataInvocationHandler((CompositeData)ud);
    65 	    new CompositeDataInvocationHandler((CompositeData)ud);
    67 	try {
    66 	try {
    68 	    return (T)Proxy.newProxyInstance(c.getClassLoader(),
    67 	    return (T)Proxy.newProxyInstance(c.getClassLoader(),
    69 		new Class[] { c }, handler);
    68 		new Class<?>[] { c }, handler);
    70 	} catch (Exception e) {
    69 	} catch (Exception e) {
    71 	    return null;
    70 	    return null;
    72 	}
    71 	}
    73     }
    72     }
    74 }
    73 }