def getOwnerProxy(person: PersonSubject): PersonSubject = {
Proxy.newProxyInstance(person.getClass().getClassLoader(), person.getClass()
.getInterfaces(), new OwnerInvocationHandle(person)).asInstanceOf[PersonSubject]
}
scala2.12。13語言中動態代理使用Proxy.newProxyInstance為什么不行,不存在這個方法,是scala版本問題,還是什么問題,求大神指點
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/258233.html
標籤:其他開發語言
