@ SuppressWarnings ( "unchecked" ) public static < T > T getEnhancedProxy ( Class < T > requiredClazz , Class < ? > [ ] params , Object [ ] values , MethodInterceptor interceptor ) { Enhancer enhancer = new Enhancer ( ) ; enhancer . setSuperclass ( requiredClazz ) ; enhancer . setCallback ( interceptor ) ; return ( T ) enhancer . create ( params , values ) ; }
It returns some proxies created by CGLIB .