Method for realizing Java small-application plug board function
A technology of plug-in function and implementation method, applied in the direction of program control device, etc., can solve the problem of high rewriting cost and achieve the effect of large scalability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0049] see figure 1 , is a flowchart of a method for realizing the plug-in function under the Java applet of the present invention. The method first specifies a specific plug-in directory to store all plug-in modules (step 101); then the system class loader traverses the plug-in directory to search for plug-in configuration files during initialization (step 102); parses the plug-in properties according to the configuration file And build this plug-in menu item (step 103) in system menu; Capture the event (step 104) that the user clicks this menu item; This class loader obtains the type of this plug-in (step 105) according to the attribute of this plug-in; The plug-in type responds to user click events (step 106).
[0050] Wherein, when the plug-in type is an application program, please refer to the response step (step 106) figure 2 , it first searches the corresponding class in the plug-in directory (step 201); then constructs an instance of the class according to the class...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 