Package org.logicalcobwebs.cglib.proxy

Examples of org.logicalcobwebs.cglib.proxy.Enhancer


    protected static DatabaseMetaData getDatabaseMetaData(DatabaseMetaData databaseMetaData, Connection wrappedConnection) {
        return (DatabaseMetaData) getProxy(databaseMetaData, new ProxyDatabaseMetaData(databaseMetaData, wrappedConnection), null);
    }

    private static Object getProxy(Object delegate, Callback callback, ConnectionPoolDefinitionIF def) {
        Enhancer e = new Enhancer();
        e.setNamingPolicy(NAMING_POLICY);
        e.setInterfaces(getInterfaces(delegate.getClass(), def));
        e.setCallback(callback);
        e.setClassLoader(ProxyFactory.class.getClassLoader());
        return e.create();
    }
View Full Code Here

TOP

Related Classes of org.logicalcobwebs.cglib.proxy.Enhancer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.