I am currently working on an application which uses some external Jars as "base frameworks" that force to use CGLIB proxies.

I am trying to use CGLIB proxy in Gateways but i dont know how to achieve this, I have seen this GatewayProxyFactoryBean constructor:

public GatewayProxyFactoryBean(Class<?> serviceInterface) {
Assert.notNull(serviceInterface, "'serviceInterface' must not be null");
Assert.isTrue(serviceInterface.isInterface(), "'serviceInterface' must be an interface");
this.serviceInterface = serviceInterface;
}

It's posible to use CGLIB proxy in this kind of object? In case i can not use CGLIB proxies, How can i deal mixing CGLIB y JDK proxies?

Thanks in advance.