JDK dynamic agent and CGLIB dynamic agent are really different

Absrtact: This article takes you to understand JDK dynamic agent and CGLIB dynamic agent This article is shared from Huawei cloud community< This article takes you to understand JDK dynamic agent and CGLIB dynamic agent >, author: skin shrimp. What's the difference between the two 1, Jdk dynamic proxy: use the interceptor (to imple ...

Posted on Thu, 02 Dec 2021 20:40:48 -0500 by jamesm87

JDK source code - LinkList class

abstract It mainly analyzes the relevant source code of the java.util.LinkList class. Definition of LinkList LinkedList is a linear list (double linked list) implemented by linked list. The elements are orderly and repeatable. public class LinkedList<E> extends AbstractSequentialList<E> implements List<E>, Deque&lt ...

Posted on Mon, 22 Nov 2021 03:16:37 -0500 by roice

☕ [Java technology guide] [Java8 technology blind spot] while running towards Java13, let's also carefully study the learning cognition of Stream!

The most powerful feature of Java 8 Lambda and Stream are the most unforgettable functions in the technical system of Java 8. The combination of the two operations to achieve a natural match is a little unstoppable. It is mainly used to supplement the collection class. It is powerful. I believe friends who have used it can obviously feel that ...

Posted on Mon, 01 Nov 2021 04:01:27 -0400 by zenag

DelayQueue in JDK

The DelayQueue under the java.util.concurrent package in the JDK is used to realize the purpose of delayable consumption based on the expiration period. DelayQueue is implemented internally based on the sortable PriorityQueue priority queue, but PriorityQueue itself is non thread safe, so the implementation of DelayQueue ensures thread safety b ...

Posted on Thu, 02 Sep 2021 21:34:26 -0400 by glenelkins

Several special ways of Spring Bean instantiation

ServiceLoader uses the reverse control in JDK ServiceLoaderFactoryBean AutowireCapableBeanFactory#createBean BeanDefinitionRegistry#registerBeanDefinition RumenzFactory interface and default implementation class DefaultRumenzFactory RumenzFactory.java package com.rumenz; public interface RumenzFactory { //jdk1.8 default implementation ...

Posted on Tue, 30 Jun 2020 02:10:36 -0400 by HektoR

Simple use of Spring Cloud Config

This article is the summary of the book "Spring Cloud micro service practical war" quick get start Build configuration center Create a basic Spring Boot project and add dependency: <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>sprin ...

Posted on Sat, 27 Jun 2020 23:59:04 -0400 by loveitandhateit

The solution of lock in Java

1. Optimistic lock and pessimistic lock Optimistic locks and pessimistic locks should be the first two types of locks that every developer contacts. Application scenarios are mainly used to update data, which is also one of the most important scenarios for using locks. The main process of updating d ...

Posted on Sat, 27 Jun 2020 04:21:02 -0400 by phpbaby2009

Introduction and use of JDK dynamic agent

1, Introduction JDK dynamic proxy is a way to implement the proxy pattern. Because it is based on the interface to do the proxy, so it is often called interface proxy. There are two important roles in the JDK dynamic agent: InvocationHandler(Interface) The user implements this interface to write the ...

Posted on Fri, 26 Jun 2020 01:15:15 -0400 by plisken

How does Java implement the Future pattern? Detailed explanation of ten thousand words!

JDK1.8 source code analysis project (Chinese note) Github address: https://github.com/yuanmabiji/jdk1.8-sourcecode-blogs 1 what is future? For example, when we buy things online, an order number will be generated after placing an order, and then the merchant will deliver goods according to the order number, and then there will be a delivery ord ...

Posted on Fri, 26 Jun 2020 00:53:48 -0400 by virtual_odin

Notes on Java learning

Notes on Java introduction 2 - Hao bin abstract class Abstract method abstract class Final keyword Final decorates the entire class Some properties in the Final modifier class interface (interface) Definition of interface Format of interface Syntax knowledge of interface Function of interface Th ...

Posted on Thu, 25 Jun 2020 22:40:21 -0400 by justdiy