All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jl.springbean.JInvocationHandler3 Maven / Gradle / Ivy

The newest version!
package com.jl.springbean;

import java.lang.reflect.Type;

/**
 * 代理实现抽象为继承类
 *
 * @param 
 * @param 
 */
public class JInvocationHandler3 extends JInvocationHandler2 {

    protected Class classc;

    public JInvocationHandler3(Class interfaceType) {
        super(interfaceType);
        Type[] actualType = getGenericityType(interfaceType);
        // 取数组的第3个,肯定是C的类型
        this.classc = (Class) actualType[2];
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy