سؤال

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