Spring series - 2.2 ConfigurationClassPostProcessor

Spring version: spring 5.2.9 BUILD-SNAPSHOT Modified part of the source code, but does not affect the main process summary ConfigurationClassPostProcessor is a post processor of BeanFactory, which implements the BeanDefinitionRegistryPostProcessor interface and also has the ability of BeanFactory postprocessor. It is used for parsing related ...

Posted by Sxooter on Fri, 28 Jan 2022 13:17:12 +0100

LeakCanary source code analysis

Memory leak Memory leak caused by single case public class SingletonActivityContext { private static SingletonActivityContext instance; private Context context; private SingletonActivityContext(Context context) { this.context = context; } public static SingletonActivityContext getInstance(Context context) { ...

Posted by spiceydog on Thu, 27 Jan 2022 07:47:13 +0100

Spring source code parsing -- spring web request Map initialization

brief introduction In the previous article, we roughly analyzed how Spring maps the request path to the processing method, but the initialization related to the mapping is still a fog for us This article will explore how to initialize the mapping between request path and processing method overview Based on the previous article: Spring sourc ...

Posted by jds580s on Thu, 20 Jan 2022 11:44:49 +0100

balancer for grpc source code reading

BalancergRPC balancerbackgroundNext, in the previous article, "Resolver of gRPC plug-in programming", gRPC parses the target into Resolver After the target is set, it passes the Resolver Builder. Build method callresolver.ClientConn.UpdateState(State) error method. What does this method do? Let's move on to the source code in this art ...

Posted by kamsmartx on Wed, 19 Jan 2022 19:59:54 +0100

JUC concurrent programming -- Interpretation of AQS source code

catalogue 1. What is AQS 2. Use of LockSupport 3. Analyze AQS source code with ReentrantLock Unfair locking operation Release lock operation 1. What is AQS AQS(AbstractQueuedSynchronizer) is a framework used to build locks and synchronizers. Using AQS can easily and efficiently construct a large number of synchronizers widely used, su ...

Posted by matthew798 on Sat, 08 Jan 2022 13:08:11 +0100

Handwritten simple webpack

Compile product analysis (() => { // Module dependency var __webpack_modules__ = ({ "./src/index.js": ((module, __unused_webpack_exports, __webpack_require__) => { // Execute the module code, where it is executed at the same time__ webpack_require__ Reference code eval(`const str = __webpack_require ...

Posted by michealholding on Wed, 05 Jan 2022 03:57:36 +0100

Analyzing arrays. In JDK8 Sort underlying principle

As soon as the array comes in, it will encounter the first threshold quickport_ Threshold (286). According to the annotation, not all those below this threshold enter Quicksort. Click sort(a, left, right, true); method: // Use Quicksort on small arrays if (right - left < QUICKSORT_THRESHOLD) { sort(a, left, right, t ...

Posted by Omid on Mon, 03 Jan 2022 03:37:43 +0100

03 analysis of Nacos Client service discovery source code

Learning is not so utilitarian. The second senior brother will take you to easily read the source code from a higher dimension ~ This article takes you through the source code level to analyze the service discovery journey of Nacos Client. The fact may not be as simple as you think. Nacos service discovery Intuitively, the service discover ...

Posted by quicknk on Sun, 02 Jan 2022 20:09:07 +0100

hystrix source code analysis

Recently, I encountered some production problems involving hystrix. I want to understand the underlying principle. Hystrix makes a lot of use of Rxjava's responsive programming. It's a little hard to understand because you don't understand Rxjava. Basic preparation <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.a ...

Posted by hmgroen on Mon, 27 Dec 2021 19:46:13 +0100

Graphic Janusgraph series - Analysis of distributed id generation strategy

JanusGraph - generation strategy of distributed id Hello, I'm Yang Zi, JanusGraph graphic series articles, updated in real time~ Figure general directory of database articles: To sort out all articles related to graphs, please move (hyperlink): Figure database series - General Catalog of articles Address: https://liyangyang.blog.csdn.net/art ...

Posted by trollll on Tue, 14 Dec 2021 12:19:38 +0100