Вопрос

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