Beans Development Kit (BDK) Analysis (6)

zhaozj2021-02-16  44

5. other

l ObjectInputStreamLoader.java As the subclass of ObjectInputStream, the agent is loaded with the existing ClassLoader. Mainly used to load the basic type of array objects.

l IndentedStream.java This tool class is used to generate a source code file.

l InputStreamProducer.java This interface provides an input stream

l ClassCompiler.java performs classes that compile the Java source code, the function of Sun.Tools.javac. *, in fact, reality is an outsourcing of Javac, calling Exec to perform Javac's external compilation command.

SimpleClassLoader.java

Inherited ClassLoader and was used by JarLoader to load classes and resources. This is a comparison worth careful designation, achieving a simple type loader.

l Timer.java tool class for internal time operation

l FileExtension.java is used to filter files, implement the FileNameFilter interface

l WindowCloser.java tool class, use to capture the closing event of the target window

l AboutDialog.java Beanbox About Dialog

EditedAdaptor.java

The property edits the adapter that implements the PropertyChangeListener interface. It only has a member variable is a propertySheet object.

l Public Void PropertyChange (PropertyChangeEvent EVT) is implemented by calling the manufactured WasModified method of PropertySheet

l MessageDialog.java popped up the dialog box of the prompt information

l messageheader.java definition message head

l ErrorDialog.java throws a modal error Dialog, inherits MessageDialog

l CustomizerDialog.java As an ordinary component editor, encapsulated a Dialog

Ibsupport.java

Use this class to support InfoBus mechanisms and bean communications

l Ourlabel.java represents an invisible bean with a string

l doonbean.java's interface to execute when creating beans

V. The author

These code are self-engaged in programming and design for many years of senior experts. There are many skills worth learning. First, I first experience the use of single-state mode, which is that I can directly get the top-level Beanboxframe. It is not necessary to use the method of transmitting parameters everywhere. For the skills used in the source code, I am very familiar with everyone, some are very strange, and it is necessary to understand these skills. As long as it is understood that the sense of accomplishment is still quite big.

The analysis source code is what you have learned, whether it is to analyze a classic code, such as the kernel, or more abused code, that is, the company's previous rotten project needs to be modified. Some have a document, some have a comment, some have nothing, so analyzing the difficulty of the source code is different. It is important to see all the code to see all the code, understand the process and overall frame, then view the key by this framework The code, this analysis of the source code will be relatively rapid and representative. Finally, learning is something worth paying attention, such as design thinking, programming skills, etc. The previous analysis did not carefully use the document. When I realized the document, I found that many things did not speak, it became "the dumplings in the teapot, I can't figure out." So everyone can practice more, describe what you want to use to use documents, will have improved the ability to analyze the analysis of yourself.

After all, it is not an expert person. It is inevitable that there is a problem and improper, please point out, thank you! My email is chinascutface@hotmail.com.

转载请注明原文地址:https://www.9cbs.com/read-26499.html

New Post(0)