89101112131415161718
@Override public Service getService(User user) { ServiceImplProxy proxy = new ServiceImplProxy(new ServiceImpl(),user); Enhancer enhancer = new Enhancer(); enhancer.setSuperclass(Service.class); enhancer.setCallback(proxy);