public static Class getProxyFactory ( Class persistentClass , Class [ ] interfaces ) throws PersistenceException { Enhancer e = new Enhancer ( ) ; e . setSuperclass ( interfaces . length == 1 ? persistentClass : null ) ; e . setInterfaces ( interfaces ) ; e . setCallbackTypes ( new Class [ ] { InvocationHandler . class , NoOp . class , } ) ; e . setCallbackFilter ( FINALIZE_FILTER ) ; e . setUseFactory ( false ) ; e . setInterceptDuringConstruction ( false ) ; return e . createClass ( ) ; }
Gets the proxy factory .