문제

I am learning the CDI AOP specification (@Interceptor).

If we use CDI AOP interceptors the use of newProxyInstance(Dynamic Java Proxy) will be deprecated. Am I correct?

도움이 되었습니까?

해결책

I cleaned up your question, because I think you're talking about AOP. The Interceptor spec (assuming you mean Java EE 7) is specific to Java EE. You would still use java proxy is you want non-EE support (e.g. it can run in an SE app without many other dependencies). It doesn't meant that the SE version is deprecated (in fact, CDI leverages it to do its work).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top