[Java basics] advanced reflection
What is a MethodHandle?
Starting with Java 7, another set of API MethodHandle is provided. Its function is similar to reflection, which can access type information at run time, but it is said that its execution efficiency is higher than reflection, which is also called modern reflection of Java.
The official definition is as follows:
A me ...
Added by shortkid422 on Sun, 26 Dec 2021 13:06:22 +0200
A brief introduction to generics of Java Basics
1. What is java generics?
java generics: the English name is generics. Generics is a new feature introduced by jdk5. The essence of java generics is parameterized types, that is, all operation data types are specified as a parameter. Entities that operate on parameterized types, such as classes, interfaces, or methods, are called generic entit ...
Added by Rottingham on Sun, 26 Dec 2021 11:10:41 +0200
JDK dynamic agent won't hit me after reading it
WHAT
Dynamic agent is a kind of agent mode. Agent mode refers to that the agent helps the proxy object complete what should be completed by the proxy object. Agents usually have more powerful capabilities and are more professional than the objects they are represented. Take an example in life to illustrate that you can choose to find the landl ...
Added by satanclaus on Thu, 23 Dec 2021 09:10:23 +0200
PHP advanced feature - combination of Reflection and Factory design pattern [code example]
PHP advanced features - Reflection and the combination of factory design patterns [explained in combination with the example of laravel admin code]
Use reflection to realize the production of factory mode without creating specific factory classes
Article address http://janrs.com/?p=833 Reprint without authorization of the author
Please indic ...
Added by mabans on Wed, 01 Dec 2021 14:38:58 +0200
Notes on annotation and reflection
Annotation and reflection
annotation
What is annotation
Annotation is a technology introduced by JDK5
Annotation is to explain the procedure
What's the difference between annotation and annotation
Annotations are explained to programs, and annotations are explained to people
Format of annotation:
Annotations exist in the code as "@ ...
Added by anurag2003 on Fri, 19 Nov 2021 20:51:10 +0200
PHP advanced feature - combination of Reflection and Factory design pattern [code example]
PHP advanced features - Reflection and the combination of factory design patterns [explained in combination with the example of laravel admin code]Use reflection to realize the production of factory mode without creating specific factory classesArticle address http://janrs.com/?p=833 Reprint without authorization of the authorPlease indicate th ...
Added by renegade33 on Thu, 18 Nov 2021 05:14:57 +0200
2021-10-01 annotation and reflection I
1, Annotation
1. Built in annotation
1.1 Override
Annotation for overriding superclass methods
Can only be used for decorating methods
Represents a method declaration intended to override another method in a superclass
1.2 Depecated
Not recommended
Can be used to decorate methods, properties, and classes
Indicates that programmers are ...
Added by Ola on Fri, 01 Oct 2021 06:02:20 +0300