请问大神学友们,这代码如何使用cglib改写?
public static void main(String[] args) {
Moveable car = new Car();
InvocationHandler timeHandler = new TimeHandler(car);
Class<?> cls = car.getClass();
Moveable timeCar = (Moveable) Proxy.newProxyInstance(
cls.getClassLoader(), cls.getInterfaces(), timeHandler);
InvocationHandler logHandler = new LogHandler(timeCar);
Moveable logCar = (Moveable) Proxy.newProxyInstance(
cls.getClassLoader(), cls.getInterfaces(), logHandler);
logCar.move();
}