AspectJ pointcut indicators - 06 within and @ within

target() Restrict connection point matching to a class of the specified type @target() Restrict join point matching target objects to classes annotated by specific annotations The function of within() is similar to that of execution(). The difference between the two is that the minimum range of connection points defined by w ...

Posted by zero_ZX on Thu, 30 Jan 2020 17:45:25 +0100

AspectJ tangent indicator-05-this

this() If the proxy class matches the specified class according to the type, then all connection points of the target class to be proxy match the tangent point In general, this() and target() are used to match and define pointcuts. They are equivalent. The difference between them is reflected in the specific performance of generating ...

Posted by zenix on Thu, 30 Jan 2020 15:05:05 +0100

Python full stack advanced programming skills 2. Class and object depth problems and Solutions

Article directory 1, Derive built-in immutable types and modify their instantiation behavior 2, Create a large number of instances to save memory 3, with statement in Python 4, Create manageable object properties 5, Class supports comparison operation 6, Management memory in ring data structure ...

Posted by Beans on Thu, 30 Jan 2020 11:40:30 +0100

Control concurrent processes

1 what is controlling concurrent processes? The tool class that controls concurrent processes is used to help our programmers make it easier for threads to cooperate Let threads cooperate with each other to meet business logic For example, let thread A wait for thread B to finish executing befor ...

Posted by JackOfBlades on Thu, 30 Jan 2020 05:13:25 +0100

AspectJ tangent indicator-02-@annotation

@annotation() Restrict matching of join points with specified annotations The final structure of each class is as follows: 1,Factory package com.test.aspectj.expression; /** * Factory interface */ public interface Factory { // Make products void make(); // transport void delivery(String address); } ...

Posted by jdc44 on Wed, 29 Jan 2020 18:09:59 +0100

Spring AOP-05-introduction enhanced IntroductionInterceptor

The goal of reference enhancement is to add some new methods and properties to the target class. Take the Waiter class as an example. Now you want to add a manage() method in the Management interface to it without modifying the code of the Waiter class. 1. Classes to enhance package com.test.springadvicetype; import org.springframework.s ...

Posted by gabaod on Wed, 29 Jan 2020 17:41:29 +0100

Talk about the priority of artemis message

order This paper mainly studies the priority of artemis message priority activemq-artemis-2.11.0/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/CoreMessage.java public class CoreMessage extends RefCountMessage implements ICoreMessage { //...... protected byte priority; public byte getPriority() { ...

Posted by mrinfin1ty on Wed, 29 Jan 2020 16:46:29 +0100

Collections in Java

Collections in Java A collection is like a shopping cart that stores all purchased goods in a single shopping cart The concept of sets Real life: many things come together Sets in Mathematics: The Overall of Things with Common Attributes Collection class in Java: is a tool class, a container that can store any number of classes with the ...

Posted by Buyocat on Tue, 28 Jan 2020 18:52:43 +0100

Tapermonkey to write video screenshot script of station B

Station B wants to cut some expression packs when watching the video, but it can't find a more convenient way. If the screenshot software is used, there will be a pause mark (╯`) ╯ (┻━┻) ╯ (┻┻┻┻┻) if it doesn't pause the speed of the postgraduate entrance examination and the speed of the software response   The implementation effect is as ...

Posted by guitarist809 on Tue, 28 Jan 2020 17:10:48 +0100

Talk about scheduled delivery time of artemis

order This paper focuses on the scheduled delivery time of artemis HDR_SCHEDULED_DELIVERY_TIME activemq-artemis-2.11.0/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/message/impl/CoreMessage.java public class CoreMessage extends RefCountMessage implements ICoreMessage { //...... @Override public Long getScheduledD ...

Posted by uramagget on Tue, 28 Jan 2020 16:52:17 +0100