
com.talanlabs.bean.mybatis.component.factory.ComponentProxyFactory Maven / Gradle / Ivy
The newest version!
package com.talanlabs.bean.mybatis.component.factory;
import com.talanlabs.component.IComponent;
import com.talanlabs.component.factory.ComponentBeanMethod;
import com.talanlabs.component.factory.ComponentDescriptor;
import com.talanlabs.component.factory.ComponentFactory;
import org.apache.ibatis.executor.loader.ResultLoaderMap;
import org.apache.ibatis.executor.loader.WriteReplaceInterface;
import org.apache.ibatis.executor.loader.javassist.JavassistProxyFactory;
import org.apache.ibatis.reflection.ExceptionUtil;
import org.apache.ibatis.reflection.factory.ObjectFactory;
import org.apache.ibatis.session.Configuration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.util.List;
import java.util.Properties;
import java.util.Set;
public class ComponentProxyFactory implements org.apache.ibatis.executor.loader.ProxyFactory {
private static final Logger LOG = LoggerFactory.getLogger(ComponentProxyFactory.class);
private JavassistProxyFactory javassistProxyFactory = new JavassistProxyFactory();
public ComponentProxyFactory() {
super();
}
@Override
public Object createProxy(Object target, ResultLoaderMap lazyLoader, Configuration configuration, ObjectFactory objectFactory, List> constructorArgTypes, List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy