Question

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?

Était-ce utile?

La solution

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).

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top