AOP的底层原理
from 2020年JAVA面试208题
1 AOP就是面向切面编程,通过切面来达到对目标类的增强的目的,关于面向切面就不做太多的解释了。 2 AOP底层是动态代理。 3 AOP针对实现了接口的类,基于原生JDK的动态代理实现的; 针对没有实现接口的类,基于CGLib来实现的。 4 CGLIb的动态代理,通过实现一个子类来实现的。 5 JDK的动态代理有一个限制,只能针对实现了接口的类进行动态代理,这是为什么呢?因为JDK的动态代理实现的代理类不是继承目标类,而是继承自Proxy类,而JAVA不允许双重代理,因此就要求目标类必须实现了接口的类。
Embed this episode
No transcript yet.
Similar podcasts
F*ck Surviving, We're Thriving
Malina Lopez
Hello beautiful humans! I have been on my holistic healing journey since 2020 after a massive awakening thanks to a sound healing ceremony. Since then I have dedicated my free time to health and healing (when I'm not too consumed with being a mama of two). Health is something that has always been important to me, but healing myself in a holistic way has allowed me to become a version of myself I am truly proud of. I had no idea there was an option for living life outside of survival mode. As someone who has been in some state of fight, flight or freeze since I was a small child the idea of any other life seemed out of reach and down right unrealistic. I honestly thought how I was living and feeling was totally normal. Once I started to heal all parts of myself down to the cells I am made up of I realized life is so much more than people pleasing, anxiety attacks and living life in a haze. I've been exciting that survival mode and entering my era of thriving. I feel ready and so e
Explicit
Demonic Sweaters Podcast
Demonic Sweaters
My name is Justin AKA Demonic Sweaters. In 2015 I started a podcast to talk about the stuff I find interesting and to interview interesting people. I took a long break during the 2020 pandemic, but started up again in early 2024. I've had great luck in getting amazing guests lined up since I've returned! Topics talked about are: Music, art, drums, paranormal, conspiracies, UFOs, self-employment, life struggles, money, health, philosophy, or basically anywhere our conversations wonder.
Explicit
Frequently asked questions
How long is this episode of 2020年JAVA面试208题?
This episode is 2 minutes long.
When was this 2020年JAVA面试208题 episode published?
This episode was published on September 5, 2022.
Can I download this 2020年JAVA面试208题 episode?
Yes. Use the download control on the episode player to save the publisher-provided media file.