Proxy pattern of Java design pattern
Proxy pattern is one of the common design patterns in Java. The so-called proxy mode means that the client does not directly call the actual object, but indirectly calls the actual object by calling the proxy.
Why call objects in this indirect form? Generally, because the client does not want to access the actual object directly, or because it ...
Posted by gid__ on Sun, 21 Apr 2019 14:33:33 -0700
Two Concurrent Types of Java: Computing-intensive and IO-intensive
Computing-intensive and IO-intensive are two typical examples of Java concurrent programming. This elephant is going to talk about its own content in this regard. This article is relatively basic and only suitable for children's shoes that are just beginning. Please don't spray them. Computing intensive Computing-intensive, as the name implies, ...
Posted by cutups on Sat, 20 Apr 2019 22:24:33 -0700
Three Agent Ways of Spring
I. Static Agent
The proxy object implements the same interface as the target object.
eg:
//Save user
UserDao(save)Direct preservation
UserDaoProxy Add transaction processing to the save method
IUserDao.java Target Object Implementation Interface
public interface IUserDao{
void save();
}
UserDao.java Target object
public cl ...
Posted by latvaustin on Fri, 19 Apr 2019 23:48:33 -0700
Java Career - Java Foundation - GUI
Lecture 1: GUI (User Graphic Interface)
I. overview
1. GUI: Graphical User Interface (GUI), a graphical user interface, is a way for computers to interact with users.
2. Two ways of computer-user interaction: GUI and CLI
GUI: Graphical User Interface, Graphical User Interface, graphical user interface, to display the computer oper ...
Posted by aayatoos on Thu, 18 Apr 2019 18:36:35 -0700
Java Career - High Technology - Enumeration and Part of JDK 1.5 New Features
Lecture 1 Enumeration
I. overview
Enumeration here is not a unique enumeration iterator for collection vector s, but a new feature of JDK 1.5. The reason for using it alone is that this knowledge point is more important and relatively difficult to understand.
Why do we have enumerations?
Question: What is the definition of a week ...
Posted by eerok on Thu, 18 Apr 2019 13:15:35 -0700
Install Tomcat 9 under Ubuntu 16.10
statement
This article was founded on March 10, 2017. Successful installation is also the day.The links given in this paper may fail in the future.About Tomcat self-startup, Tomcat official website prompts one mode. But this article uses other ways.
Environmental Science
System: Ubuntu-16.10-server-amd64 User:root
Get ready
File: JDK( jdk-8u121 ...
Posted by Kryptix on Mon, 15 Apr 2019 23:00:33 -0700
Prevent JDK8 duplicate class definitions from causing de...
sorry, first buy a pass, haha.
Everyone is working hard to upgrade, enjoying all kinds of conveniences brought by JDK8, but sometimes the upgrade is not so smooth? For example, today's question. We all know that the biggest change in JDK8's memory model is to abandon Perm and usher in the era of Metaspace. If you are not familiar with Meta ...
Posted by GaryAC on Sun, 14 Apr 2019 10:48:32 -0700
Understanding Java Object Serialization
Understanding Java object serialization
Links to the original text: http://www.blogjava.net/jiangshachina/archive/2012/02/13/369898.html
There are many articles about Java serialization. This article is a summary of my personal past study, understanding and application of Java serialization. This article covers the basic principles of Java se ...
Posted by NateDawg on Mon, 08 Apr 2019 14:36:32 -0700
AQS ConditionObject Source Code Analysis
AbstractQueued Synchronizer has one synchronization queue and several waiting queues. The types of nodes in the synchronization queue and waiting queue are both static internal class AbstractQueued Synchronizer. Node. The source code analyzed here is based on JDK 8.
ConditionObject includes the following fields
// Head node of waiting queue
pr ...
Posted by keegan on Sat, 06 Apr 2019 13:39:30 -0700
Android< Handler mechanism I understand >
1. Why need Handler mechanism
In my < How Threads and Processes Work in Android > In this article, it is clearly stated that when the application is started, the system will create an execution thread named "main thread" for the application. This thread is important because it is responsible for dispatching events to correspon ...
Posted by jfugate on Tue, 02 Apr 2019 12:30:29 -0700