CN109901826A - For the data processing method of java applet, device and electronic equipment - Google Patents

For the data processing method of java applet, device and electronic equipment Download PDF

Info

Publication number
CN109901826A
CN109901826A CN201910157059.4A CN201910157059A CN109901826A CN 109901826 A CN109901826 A CN 109901826A CN 201910157059 A CN201910157059 A CN 201910157059A CN 109901826 A CN109901826 A CN 109901826A
Authority
CN
China
Prior art keywords
java
program
java applet
data processing
external
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910157059.4A
Other languages
Chinese (zh)
Other versions
CN109901826B (en
Inventor
黎桂林
胡运辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Biao Information Technology Co Ltd
Shanghai Jiwei Information Technology Co Ltd
Original Assignee
Shanghai Biao Information Technology Co Ltd
Shanghai Jiwei Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Biao Information Technology Co Ltd, Shanghai Jiwei Information Technology Co Ltd filed Critical Shanghai Biao Information Technology Co Ltd
Priority to CN201910157059.4A priority Critical patent/CN109901826B/en
Publication of CN109901826A publication Critical patent/CN109901826A/en
Application granted granted Critical
Publication of CN109901826B publication Critical patent/CN109901826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

It discloses a kind of for the data processing method of java applet, device and electronic equipment.This method comprises: running java applet on the dynamic modeling system towards Java;Java local interface is accessed by the dynamic modeling system towards Java by java applet and calls management program, Java local interface calls management program for providing local data request function;Application programming interfaces library of the management program by Java local interface calling for external program is called by Java local interface;And, it is communicated by application programming interfaces library by the external program run in bus mechanism and external system, to call the external program that call management program load by Java local interface, the external program executes logic of business functions in response to the calling in application programming interfaces library and returns the result data.In this way, the application programming interfaces layer of java applet and Business Logic can be decoupled, to promote the development efficiency of program and reduce maintenance cost.

Description

For the data processing method of java applet, device and electronic equipment
Technical field
This application involves technical field of data processing, and more specifically, are related at a kind of data for java applet Manage method, apparatus and electronic equipment.
Background technique
Java language has very powerful function, is suitble to exploitation desktop type software, but there is also bad compared to other Languages Gesture.
For example, faster, execution efficiency is higher for speed for java language for C language.Moreover, because C language has This tool of pointer, so that C language is more partial to bottom, commonly used in the relevant driving exploitation of hardware, this is Java language institute Do not accomplish.
In certain cases, it may be desirable to which java applet can call the service logic function of the external program of other Languages Can, this just needs to carry out data transmitting between java applet and external program.
But java applet is the service logic application called directly in local dynamic base by Java local interface at present Routine interface can not realize the data transmitting between external program well, so that the business of external program can not be applied Logic function.
Accordingly, it is desired to provide the improved data processing scheme for java applet.
Summary of the invention
In order to solve the above-mentioned technical problem, the application is proposed.Embodiments herein provides a kind of for Java journey Data processing method, device and the electronic equipment of sequence can be used for the application programming interfaces library of external program by calling, with Further communicate the logic of business functions to calling external program with external program by bus mechanism, can incite somebody to action in this way The application programming interfaces layer of java applet and Business Logic decouple, thus promote the development efficiency of program and reduce maintenance at This.
According to the one aspect of the application, provide a kind of data processing method for java applet, comprising: towards Java applet is run on the dynamic modeling system of Java;The dynamic modeling system towards Java is passed through by the java applet It accesses Java local interface and calls management program, the Java local interface calls management program for providing local data request Function;Application program of the management program by Java local interface calling for external program is called by the Java local interface Interface library;And led to by the application programming interfaces library by the external program run in bus mechanism and external system Letter, to call the external program that call management program load by the Java local interface, the external program response Calling in the application programming interfaces library executes logic of business functions and returns the result data.
In the above-mentioned data processing method for java applet, the external program is C/C++ program, and the application Routine interface is the External Program Interface library for C language.
In the above-mentioned data processing method for java applet, the external system is linux system.
In the above-mentioned data processing method for java applet, the bus mechanism is DBus mechanism.
In the above-mentioned data processing method for java applet, run on the dynamic modeling system towards Java The java applet between pass through the service mechanism communication of the dynamic modeling system frame towards Java.
In the above-mentioned data processing method for java applet, the java applet and the Java local interface are called Pass through the service mechanism communication of the dynamic modeling system frame towards Java between management program.
In the above-mentioned data processing method for java applet, the dynamic modeling system frame operation towards Java On a java virtual machine.
In the above-mentioned data processing method for java applet, the bus mechanism is built in the application programming interfaces Library, with the logic of business functions for calling the external program to provide.
In the above-mentioned data processing method for java applet, the external program provides under different paths and interface For the attribute and method of the logic of business functions, and, the bus mechanism passes through gateway service routine call and its correspondence Path and interface corresponding to method obtain the result data.
In the above-mentioned data processing method for java applet, further comprise: being passed through by the java applet described Java local interface and the Java local interface call management program to obtain the result data.
According to the another aspect of the application, a kind of data processing equipment for java applet is provided, comprising: program fortune Row unit, for running java applet on the dynamic modeling system towards Java;Local IP access unit, for by the Java Program accesses Java local interface by the dynamic modeling system towards Java and calls management program, and the Java locally connects Mouth calls management program for providing local data request function;Local call unit, for by the Java local interface tune The application programming interfaces library for being used for external program is called by Java local interface with management program;And external call unit, For being communicated by the application programming interfaces library by the external program run in bus mechanism and external system, to call The external program of management program load is called by the Java local interface, the external program is in response to the application The calling in routine interface library executes logic of business functions and returns the result data.
In the above-mentioned data processing equipment for java applet, the external program is C/C++ program, and the application Routine interface is the External Program Interface library for C language.
In the above-mentioned data processing equipment for java applet, the external system is linux system.
In the above-mentioned data processing equipment for java applet, the bus mechanism is DBus mechanism.
In the above-mentioned data processing equipment for java applet, run on the dynamic modeling system towards Java The java applet between pass through the service mechanism communication of the dynamic modeling system frame towards Java.
In the above-mentioned data processing equipment for java applet, the java applet and the Java local interface are called Pass through the service mechanism communication of the dynamic modeling system frame towards Java between management program.
In the above-mentioned data processing equipment for java applet, the dynamic modeling system frame operation towards Java On a java virtual machine.
In the above-mentioned data processing equipment for java applet, the bus mechanism is built in the application programming interfaces Library, with the logic of business functions for calling the external program to provide.
In the above-mentioned data processing equipment for java applet, the external program provides under different paths and interface For the attribute and method of the logic of business functions, and, the bus mechanism passes through gateway service routine call and its correspondence Path and interface corresponding to method obtain the result data.
In the above-mentioned data processing equipment for java applet, further comprise: result acquiring unit, for by described Java applet calls management program to obtain the result data by the Java local interface and the Java local interface.
According to the application's in another aspect, providing a kind of electronic equipment, comprising: processor;And memory, in institute It states and is stored with computer program instructions in memory, the computer program instructions make described when being run by the processor Processor executes the data processing method for being used for java applet as described above.
According to the another aspect of the application, a kind of computer-readable medium is provided, computer program is stored thereon with and refers to It enables, the computer program instructions execute the processor as described above for java applet Data processing method.
Compared with prior art, provided by the present application for the data processing method of java applet, device and electronic equipment The application programming interfaces library of external program can be used for by calling, with further pass through bus mechanism and external program into The logic of business functions that row communicates to calling external program.Therefore, the data processing provided by the present application for java applet Method, apparatus and electronic equipment can decouple the application programming interfaces layer of java applet and Business Logic, to promote journey The development efficiency of sequence simultaneously reduces maintenance cost.
Detailed description of the invention
The embodiment of the present application is described in more detail in conjunction with the accompanying drawings, the above-mentioned and other purposes of the application, Feature and advantage will be apparent.Attached drawing is used to provide to further understand the embodiment of the present application, and constitutes explanation A part of book is used to explain the application together with the embodiment of the present application, does not constitute the limitation to the application.In the accompanying drawings, Identical reference label typically represents same parts or step.
Fig. 1 illustrates the signals according to the application environment of the data processing method for java applet of the embodiment of the present application Figure.
Fig. 2 illustrates the flow chart of the data processing method for java applet according to the embodiment of the present application.
Fig. 3 illustrates the exemplary of the DBus mechanism in the data processing method according to the java applet of the embodiment of the present application Schematic diagram.
Fig. 4 illustrates the block diagram of the data processing equipment for java applet according to the embodiment of the present application.
Fig. 5 illustrates the block diagram of the electronic equipment according to the embodiment of the present application.
Specific embodiment
In the following, example embodiment according to the application will be described in detail by referring to the drawings.Obviously, described embodiment is only It is only a part of the embodiment of the application, rather than the whole embodiments of the application, it should be appreciated that the application is not by described herein The limitation of example embodiment.
Application is summarized
As described above, java applet is directly adjusted by Java local interface (JavaNative Interface:JNI) at present With the service logic application programming interfaces (Application Program Interface:API) in local dynamic base, with complete The tasks such as request and acquisition, parameter configuration, status inquiry at data.That is, Business Logic is miscellaneous with JNIAPI layers It mixes together.
In this way, once there is logic of business functions variation, then correlation module requires to change in JNIAPI layers and java applet It is dynamic;And face different logic of business functions, can not unify and JNIAPI layer of specification, and service logic exploitation when also need it is simultaneous External API exploitation is cared for, development efficiency is low, and maintenance cost is high.Also, JNIAPI layers are coupled natively with Business Logic Run counter to software design principle.
Therefore, in view of the above technical problems, the basic conception of the application is that Java local interface calls management program to pass through The application programming interfaces library for being used for external program is called by Java local interface, then bus is passed through by the application programming interfaces library Mechanism to communicate with external program, so that it is outer to call script that management program to be called to be loaded directly by the Java local interface Portion's program.
Specifically, it is provided by the present application for the data processing method of java applet, device and electronic equipment first in face Java applet is run on the dynamic modeling system of Java, and the dynamic analog towards Java is then passed through by the java applet Type system accesses Java local interface and calls management program, and the Java local interface calls management program for providing local number Management program is called to call by Java local interface for external program according to request function, then by the Java local interface Application programming interfaces library finally passes through the outside run in bus mechanism and external system by the application programming interfaces library Interprogram communication, to call the external program that call management program load by the Java local interface, wherein described outer Portion's program executes logic of business functions in response to the calling in the application programming interfaces library and returns the result data.
In this way, being decoupled due to JNIAPI layers with Business Logic, JNIAPI layers can be independently high with Business Logic The exploitation of effect ground.
Also, different service logic demands is faced, unified and specification JNIAPI layer, also, even if industry can be provided Logic requirement of being engaged in changes, and the inside for also only needing to modify application programming interfaces library is realized, it is not necessary to modify java applet and JNIAPI layers, reduce maintenance cost.
Further, since Business Logic is in external system, and not as a part of local dynamic base, and can make For can independently operated program improve development efficiency so that multi-party cooperative development is flexibly and conveniently
After describing the basic principle of the application, carry out the various non-limits for specifically introducing the application below with reference to the accompanying drawings Property embodiment processed.
System survey
Fig. 1 illustrates the signals according to the application environment of the data processing method for java applet of the embodiment of the present application Figure.
As shown in Figure 1, multiple java applets, such as java applet 1, java applet 2 etc. operate in the dynamic towards Java In model system (OSGi).Here, OSGi is considered the module layer of Java platform, and OSGi framework is Java system A universal container is provided, the program beam (bundle) in the system can realize the peace of program beam without halt system Loading, unloading and update.Therefore, have in terms of OSGi specification is for the physical isolation of module, module interaction, multi version very perfect Mechanism.Also, further as shown in Figure 1, OSGi is operated on Java Virtual Machine (Java Virtual Machine:JVM).
When java applet needs to call service, infrastructure service program is accessed first, if infrastructure service program can not The service that java applet needs is provided, then further access JNI calls management program, calls management program to pass through JNI tune by JNI With service.Here, JNI, which provides several API, realizes the communication (for example, C language, C Plus Plus etc.) of Java He other language. Therefore, in the embodiment of the present application, the external program can be C language, and C Plus Plus is also possible to other Languages.Also, The external program operates in external system, for example, the external system can be linux system or other systems.
Since Java1.1, JNI standard just becomes a part of Java platform, it allows Java code and with other languages Say that the code write interacts.In addition, JNI makes it possible the interaction between java applet and hardware and operating system, and And program feature can be improved.
In the embodiment of the present application, be not call management program by JNI to be loaded directly into external program by the JNI, and It is that management program is called to call the application programming interfaces library for being used for external program by JNI by the JNI, for example, if external Program is C language, then the application programming interfaces library is referred to alternatively as the library CAPI.Also, application programming interfaces library further passes through Bus mechanism, such as DBus mechanism are communicated with the external program run in external system, to call the external program.
Here, DBus mechanism is the communication technology between a kind of advanced process, can be with by DBus mechanism, between process Carry out one-to-one and multi-to-multi peer-to-peer communications.Specifically, when a process hair message gives another process, will can first disappear Breath sends and is given to DBus finger daemon, and then this message is forwarded to purpose process by DBus finger daemon.It is, DBus is guarded Process acts as the role of a terminal.It is worth noting that, the main concept of DBus mechanism is bus, it is connected to bus Process can be received by bus or transmit message, and bus carries out different when receiving message according to different type of messages Processing.Therefore, in the embodiment of the present application, the bus mechanism is not limited to DBus mechanism.
Finally, the external program executes logic of business functions in response to the calling in the application programming interfaces library and returns Result data, to realize the decoupling of JNIAPI layers with Business Logic.
In the following, by being carried out further specifically to according to the data processing method for being used for java applet of the embodiment of the present application It is bright.
Illustrative methods
Fig. 2 illustrates the flow chart of the data processing method for java applet according to the embodiment of the present application.
As shown in Fig. 2, the data processing method for java applet according to the embodiment of the present application includes: S110, in face Java applet is run on the dynamic modeling system of Java;S120 passes through the dynamic towards Java by the java applet Model system accesses Java local interface and calls management program, and the Java local interface calls management program for providing local Request of data function;S130 calls management program to call by Java local interface for outside by the Java local interface The application programming interfaces library of program;And S140, by the application programming interfaces library by being transported in bus mechanism and external system Capable external program communication, to call the external journey that call management program load by the Java local interface Sequence, the external program execute logic of business functions in response to the calling in the application programming interfaces library and return the result data.
In step s 110, java applet is run on the dynamic modeling system towards Java.Here, the java applet The dynamic modeling system towards Java is operated in, i.e., under OGSi frame, and is carried out therebetween by the service mechanism of OSGi framework Communication.Also, as described above, OSGi framework operates on JVM, as the module layer of Java platform, within supporting frame The peace loading, unloading of plug-in unit dynamic and update upgrading, and platform does not have to restart.
In the step s 120, the local Java is accessed by the dynamic modeling system towards Java by the java applet Interface calls management program, and the Java local interface calls management program for providing local data request function.Here, such as Java applet described in fruit will obtain data, then need by OSGi framework provide service mechanism and JNI call management program into Row communication, calls JNI method to carry out request of data, data acquisition, parameter configuration and status inquiry etc..
In step s 130, management program is called to call by Java local interface for outer by the Java local interface The application programming interfaces library of portion's program.It is, in the embodiment of the present application, JNI calls management program to adjust by JNI mechanism With application programming interfaces library method, to realize request of data, data acquisition, parameter configuration and status inquiry etc..
It is described outer by what is run in bus mechanism and external system by the application programming interfaces library in step S140 Portion's interprogram communication.As described above, the application programming interfaces library is the library CAPI in the case where external program is C/C++ language, It is the C/C++ dynamic base to be loaded by Java, is called in the external API for providing unification and specification for JNI, and inside it The service logic method provided by DBus mechanism calling external program.
Therefore, in the data processing method for java applet according to the embodiment of the present application, in the bus mechanism It is placed in the application programming interfaces library, with the logic of business functions for calling the external program to provide.
In the embodiment of the present application, the external program run in external system, such as the C/C++ program run on Linux It realizes logic of business functions, and in response to the calling initiated by the library CAPI from DBus, executes business logical operation and return The result data of execution.
Therefore, the external program is the stand-alone program operated under external system environment, inside realize it is specific Logic of business functions, outside, in response to the far call from application programming interfaces library, execute call action by DBus mechanism, And return to the result data of execution.
For example, the C/C++ program run on the library CAPI and Linux is communicated by DBus mechanism, wherein on Linux C/C++ program be connected as the recipient of DBus from DBus bus and under different paths and interface provide attribute and Method meets logic of business functions.Also, the library CAPI is connected as DBus requesting party with DBus bus, DBuS bus notice Method under the corresponding path of gateway service routine call and interface obtains data and state.
Therefore, in the data processing method for java applet according to the embodiment of the present application, the external program exists The attribute and method for being used for the logic of business functions are provided under different paths and interface, and, the bus mechanism passes through gateway Service routine call and its corresponding path and interface corresponding to method obtain the result data.
Finally, java applet calls management program to obtain the result data returned by JNI layers and JNI.
It is, further comprising in the data processing method for java applet according to the embodiment of the present application: by The java applet calls management program to obtain the number of results by the Java local interface and the Java local interface According to.
In another example, in the data processing method for java applet according to the embodiment of the present application, JNI is called The registerService () method for the BundleContext (beam context) that management program can be provided by OSGi framework Carry out registration service, other java applet can by the getServiceReference () of BundleContext and GetService () method calls the service for managing plug-in unit and being registered to obtain JNI.By the service, java applet can be adjusted With JNI call management program provided by method realize request of data, data acquisition, parameter configuration and status inquiry etc..
Specific application example
Fig. 3 illustrates the exemplary of the DBus mechanism in the data processing method according to the java applet of the embodiment of the present application Schematic diagram.As shown in figure 3, the DBus mechanism can be implemented as DBus finger daemon comprising connect with the inside in the library CAPI And the external connection with Linux program.By the internal connection, the library CAPI calls logic of business functions or establishes signal And waiting is as a result, and by the external connection, Linux program realization logic of business functions or transmission signal and return to knot Fruit.
In this example, java applet and Linux based on DBus are provided according to the DBus mechanism of the embodiment of the present application Well-bedded communication mechanism between C/C++ program can be divided into following several parts:
1.Java program calls top section of the JNI library write by C/C++ as entire communication mechanism by JNI.
2. entire top section is that a ghost is not related to the realization of functional requirement, java applet is basis Function needs to go to call the API in JNI library.
The library 3.JNI, which encapsulates, meets the API of Java functional requirement to supply Java layers of calling, but there is no have for JNI library Function required for body is realized, and only encapsulate the API in the library CAPI of another C/C++.
Floor portions of the Linux C/C++ program of the library 4.CAPI and bottom as communication mechanism, being mainly responsible for function needs The completion asked.
The library 5.CAPI encapsulates a large amount of API to obtain the data and state of bottom Linux C/C++ program, but CAPI API inside library is not the simple interface for calling Linux C/C++.
The API in the library 6.CAPI carries out interprocess communication by the Linux C/C++ of DBus and bottom, to realize data Interaction.As shown in figure 3, API and Linux C/C++ in the library CAPI is connected with DBus can generate internal connect and outside respectively Connection, and the internal connection and external connection are unique identification of the two processes in DBus finger daemon.
7.Linux C/C++ program will create a large amount of object and thus object binding path as server-side and interface is made For its mark.And the object also has a virtual table, this virtual table is really that a Function Array (realizes function The function interface of demand).
8. the method in the path of object, interface and virtual table is all that the library CAPI and Linux C/C++ program are negotiated Alright.Linux C/C++ encapsulation complete after, CAPI can by its inside connect and all objects path, Interface and method realize corresponding functional requirement.
Api interface in 9.CAPI is connected with Linux C/C++ program by same DBus bus, then according to each The difference of API function, by different paths and interface go call recipient Linux C/C++ program method obtain data or Person completes corresponding function.
API in 10.CAPI can be waited after having invoked the method in Linux C/C++ to be returned the result, and the library CAPI Corresponding data can be got according to this result or whether arbitration functions run succeeded.
It can be seen that well arranged based on the java applet of DBus and the communication mechanism of Linux C/C++ program, it is entire on Layer part is responsible for interacting with extraneous and floor portions, and floor portions are responsible for completing corresponding functional requirement and return result Upper layer is transmitted to be supplied to the end Java.
Also, the underclad portion of the java applet based on DBus and the communication mechanism of Linux C/C++ program is by the library CAPI It is responsible for interacting with top section, Linux C/C++ program is then called by DBus to complete corresponding function and will tie Fruit returns to JNI library.
The library CAPI has not only acted as connection upper layer and the Central Terminal Station effect of Linux C/C++, is also based on DBus's The key of java applet and the communication mechanism of Linux C/C++ program, it has been solved perfectly JNI library and has called directly LINUX C/C+ The disadvantages of high degree of coupling brought by+library, low development efficiency.Also, it is interacted by DBus and Linux C/C++ program So that entire communication mechanism more has a sense of hierarchy, the degree of coupling is low, and development efficiency is high.
Exemplary means
Fig. 4 illustrates the block diagram of the data processing equipment for java applet according to the embodiment of the present application.
As shown in figure 4, including: program fortune according to the data processing equipment 200 for java applet of the embodiment of the present application Row unit 210, for running java applet on the dynamic modeling system towards Java;Local IP access unit 220, for by institute It states java applet and Java local interface calling management program, the Java is accessed by the dynamic modeling system towards Java Local interface calls management program for providing local data request function;Local call unit 230, for by the Java sheet Ground interface calls management program to call the application programming interfaces library for being used for external program by Java local interface;And it is external Call unit 240, for passing through the external journey run in bus mechanism and external system by the application programming interfaces library Sequence communication, to call the external program that call management program load by the Java local interface, the external program Logic of business functions is executed in response to the calling in the application programming interfaces library and returns the result data.
In one example, in the above-mentioned data processing equipment 200 for java applet, the external program is C/C+ + program, and the application programming interfaces are the External Program Interface libraries for C language.
In one example, in the above-mentioned data processing equipment 200 for java applet, the external system is Linux system.
In one example, in the above-mentioned data processing equipment 200 for java applet, the bus mechanism is DBus Mechanism.
In one example, in the above-mentioned data processing equipment 200 for java applet, described dynamic towards Java Pass through the server of the dynamic modeling system frame towards Java between the java applet run in states model system System communication.
In one example, in the above-mentioned data processing equipment 200 for java applet, the java applet with it is described Java local interface calls the service mechanism communication between management program by the dynamic modeling system frame towards Java.
In one example, in the above-mentioned data processing equipment 200 for java applet, the dynamic towards Java Model system frame is run on a java virtual machine.
In one example, in the above-mentioned data processing equipment 200 for java applet, the bus mechanism is built in The application programming interfaces library, with the logic of business functions for calling the external program to provide.
In one example, in the above-mentioned data processing equipment 200 for java applet, the external program is in difference The attribute and method for being used for the logic of business functions are provided under path and interface, and, the bus mechanism passes through gateway service Method corresponding to routine call and its corresponding path and interface obtains the result data.
In one example, in the above-mentioned data processing equipment 200 for java applet, further comprise: result is obtained Unit is taken, for calling management program to obtain by the Java local interface and the Java local interface by the java applet Obtain the result data.
Here, it will be understood by those skilled in the art that it is each in the above-mentioned data processing equipment 200 for java applet The concrete function and operation of unit and module have been described above the description of the data processing method for java applet with reference to Fig. 2 In be discussed in detail, and therefore, will omit its repeated description.
As described above, the data processing equipment 200 for java applet according to the embodiment of the present application may be implemented each In kind terminal device.Such as the server or terminal of operation java applet, such as smart phone, desktop computer, notebook Computer etc..In one example, it can be used as according to the data processing equipment 200 for java applet of the embodiment of the present application One software module and/or hardware module and be integrated into terminal device.For example, this is used for the data processing equipment of java applet 200 can be a software module in the operating system of the terminal device, or can be and be directed to the terminal device and opened One application program of hair;Certainly, which equally can be the crowd of the terminal device One of more hardware modules.
Alternatively, in another example, this is used for the data processing equipment 200 of java applet and the terminal device can also be with It is discrete equipment, and the data processing equipment 200 for being used for java applet can be connected by wired and or wireless network Interactive information is transmitted to the terminal device, and according to the data format of agreement.
Example electronic device
In the following, being described with reference to Figure 5 the electronic equipment according to the embodiment of the present application.
Fig. 5 illustrates the block diagram of the electronic equipment according to the embodiment of the present application.
As shown in figure 5, electronic equipment 10 includes one or more processors 11 and memory 12.
Processor 13 can be central processing unit (CPU) or have data-handling capacity and/or instruction execution capability Other forms processing unit, and can control the other assemblies in electronic equipment 10 to execute desired function.
Memory 12 may include one or more computer program products, and the computer program product may include each The computer readable storage medium of kind form, such as volatile memory and/or nonvolatile memory.The volatile storage Device for example may include random access memory (RAM) and/or cache memory (cache) etc..It is described non-volatile to deposit Reservoir for example may include read-only memory (ROM), hard disk, flash memory etc..It can be deposited on the computer readable storage medium One or more computer program instructions are stored up, processor 11 can run described program instruction, to realize this Shen described above Each embodiment please for the data processing method of java applet and/or other desired functions.In the calculating Such as java applet can also be stored in machine readable storage medium storing program for executing, JNI calls the various contents such as management program.
In one example, electronic equipment 10 can also include: input unit 13 and output device 14, these components pass through The interconnection of bindiny mechanism's (not shown) of bus system and/or other forms.
The input unit 13 may include such as keyboard, mouse etc..
The output device 14 can be output to the outside various information, the result data etc. returned including external program.This is defeated Device 14 may include such as display, loudspeaker, printer and communication network and its remote output devices connected out Etc..
Certainly, to put it more simply, illustrated only in Fig. 5 it is some in component related with the application in the electronic equipment 10, The component of such as bus, input/output interface etc. is omitted.In addition to this, according to concrete application situation, electronic equipment 10 is also It may include any other component appropriate.
Illustrative computer program product and computer readable storage medium
Other than the above method and equipment, embodiments herein can also be computer program product comprising meter Calculation machine program instruction, it is above-mentioned that the computer program instructions make the processor execute this specification when being run by processor According in the data processing method for java applet of the various embodiments of the application described in " illustrative methods " part Step.
The computer program product can be write with any combination of one or more programming languages for holding The program code of row the embodiment of the present application operation, described program design language includes object oriented program language, such as Java, C++ etc. further include conventional procedural programming language, such as " C " language or similar programming language.Journey Sequence code can be executed fully on the user computing device, partly execute on a user device, be independent soft as one Part packet executes, part executes on a remote computing or completely in remote computing device on the user computing device for part Or it is executed on server.
In addition, embodiments herein can also be computer readable storage medium, it is stored thereon with computer program and refers to It enables, the computer program instructions make the processor execute above-mentioned " the exemplary side of this specification when being run by processor According to the step in the data processing method for java applet of the various embodiments of the application described in method " part.
The computer readable storage medium can be using any combination of one or more readable mediums.Readable medium can To be readable signal medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can include but is not limited to electricity, magnetic, light, electricity Magnetic, the system of infrared ray or semiconductor, device or device, or any above combination.Readable storage medium storing program for executing it is more specific Example (non exhaustive list) includes: the electrical connection with one or more conducting wires, portable disc, hard disk, random access memory Device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc Read-only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The basic principle of the application is described in conjunction with specific embodiments above, however, it is desirable to, it is noted that in this application The advantages of referring to, advantage, effect etc. are only exemplary rather than limitation, must not believe that these advantages, advantage, effect etc. are the application Each embodiment is prerequisite.In addition, detail disclosed above is merely to exemplary effect and the work being easy to understand With, rather than limit, it is that must be realized using above-mentioned concrete details that above-mentioned details, which is not intended to limit the application,.
Device involved in the application, device, equipment, system block diagram only as illustrative example and be not intended to It is required that or hint must be attached in such a way that box illustrates, arrange, configure.As those skilled in the art will appreciate that , it can be connected by any way, arrange, configure these devices, device, equipment, system.Such as "include", "comprise", " tool " etc. word be open vocabulary, refer to " including but not limited to ", and can be used interchangeably with it.Vocabulary used herein above "or" and "and" refer to vocabulary "and/or", and can be used interchangeably with it, unless it is not such that context, which is explicitly indicated,.Here made Vocabulary " such as " refers to phrase " such as, but not limited to ", and can be used interchangeably with it.
It may also be noted that each component or each step are can to decompose in the device of the application, device and method And/or reconfigure.These decompose and/or reconfigure the equivalent scheme that should be regarded as the application.
The above description of disclosed aspect is provided so that any person skilled in the art can make or use this Application.Various modifications in terms of these are readily apparent to those skilled in the art, and are defined herein General Principle can be applied to other aspect without departing from scope of the present application.Therefore, the application is not intended to be limited to Aspect shown in this, but according to principle disclosed herein and the consistent widest range of novel feature.
In order to which purpose of illustration and description has been presented for above description.In addition, this description is not intended to the reality of the application It applies example and is restricted to form disclosed herein.Although already discussed above multiple exemplary aspects and embodiment, this field skill Its certain modifications, modification, change, addition and sub-portfolio will be recognized in art personnel.

Claims (12)

1. a kind of data processing method for java applet, comprising:
Java applet is run on the dynamic modeling system towards Java;
Java local interface is accessed by the dynamic modeling system towards Java by the java applet and calls management program, The Java local interface calls management program for providing local data request function;
Application program of the management program by Java local interface calling for external program is called by the Java local interface Interface library;And
It is communicated by the application programming interfaces library by the external program run in bus mechanism and external system, to call The external program of management program load is called by the Java local interface, the external program is in response to the application The calling in routine interface library executes logic of business functions and returns the result data.
2. the data processing method according to claim 1 for java applet, wherein the external program is C/C++ Program, and the application programming interfaces are the External Program Interface libraries for C language.
3. the data processing method according to claim 1 for java applet, wherein the external system is Linux System.
4. the data processing method according to claim 1 for java applet, wherein the bus mechanism is DBus machine System.
5. the data processing method according to claim 1 for java applet, wherein in the dynamic towards Java Pass through the service mechanism of the dynamic modeling system frame towards Java between the java applet run in model system Communication.
6. the data processing method according to claim 5 for java applet, wherein the java applet with it is described Java local interface calls the service mechanism communication between management program by the dynamic modeling system frame towards Java.
7. being used for the data processing method of java applet according to claim 5 or 6, wherein described towards Java's Dynamic modeling system frame is run on a java virtual machine.
8. the data processing method according to claim 1 for java applet, wherein
The bus mechanism is built in the application programming interfaces library, with the service logic function for calling the external program to provide Energy.
9. the data processing method according to claim 1 for java applet, wherein
The external program provides the attribute and method for the logic of business functions under different paths and interface, and
The bus mechanism is by method corresponding to gateway service routine call and its corresponding path and interface to obtain State result data.
10. the data processing method according to claim 1 for java applet, further comprises:
It is called described in management program acquisition as the java applet by the Java local interface and the Java local interface Result data.
11. a kind of data processing equipment for java applet, comprising:
Program running unit, for running java applet on the dynamic modeling system towards Java;
Local IP access unit, it is local for accessing Java by the dynamic modeling system towards Java by the java applet Interface calls management program, and the Java local interface calls management program for providing local data request function;
Local call unit, for calling management program to call by Java local interface for outer by the Java local interface The application programming interfaces library of portion's program;And
External call unit, for described outer by what is run in bus mechanism and external system by the application programming interfaces library Portion's interprogram communication, to call the external program that call management program load by the Java local interface;
Wherein, the external program executes logic of business functions in response to the calling in the application programming interfaces library and returns the result Data.
12. a kind of electronic equipment, comprising:
Processor;And
Memory is stored with computer program instructions in the memory, and the computer program instructions are by the processing Device makes the processor execute such as the data processing of any of claims 1-10 for java applet when running Method.
CN201910157059.4A 2019-03-01 2019-03-01 Data processing method and device for Java program and electronic equipment Active CN109901826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910157059.4A CN109901826B (en) 2019-03-01 2019-03-01 Data processing method and device for Java program and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910157059.4A CN109901826B (en) 2019-03-01 2019-03-01 Data processing method and device for Java program and electronic equipment

Publications (2)

Publication Number Publication Date
CN109901826A true CN109901826A (en) 2019-06-18
CN109901826B CN109901826B (en) 2022-06-10

Family

ID=66946107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910157059.4A Active CN109901826B (en) 2019-03-01 2019-03-01 Data processing method and device for Java program and electronic equipment

Country Status (1)

Country Link
CN (1) CN109901826B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120126920A (en) * 2011-05-13 2012-11-21 (주)쉬프트웍스 Method for Anti-Encoding Android by Using Java Native Interface
CN103019748A (en) * 2013-01-15 2013-04-03 珠海金山办公软件有限公司 Method and system for embedding local application program into desktop window in Linux
CN103746959A (en) * 2013-11-27 2014-04-23 上海斐讯数据通信技术有限公司 Java and C communication mechanism implementation method in OSGi environment
CN107239350A (en) * 2016-03-28 2017-10-10 中国电信股份有限公司 Method and system for calling gateway capacity

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120126920A (en) * 2011-05-13 2012-11-21 (주)쉬프트웍스 Method for Anti-Encoding Android by Using Java Native Interface
CN103019748A (en) * 2013-01-15 2013-04-03 珠海金山办公软件有限公司 Method and system for embedding local application program into desktop window in Linux
CN103746959A (en) * 2013-11-27 2014-04-23 上海斐讯数据通信技术有限公司 Java and C communication mechanism implementation method in OSGi environment
CN107239350A (en) * 2016-03-28 2017-10-10 中国电信股份有限公司 Method and system for calling gateway capacity

Also Published As

Publication number Publication date
CN109901826B (en) 2022-06-10

Similar Documents

Publication Publication Date Title
US11816492B2 (en) Third party integration of plugins and widgets
US8271609B2 (en) Dynamic service invocation and service adaptation in BPEL SOA process
US11042387B2 (en) Deploying cross-platform applications on mobile devices with native and web components
US20180295194A1 (en) Techniques for supporting remote micro-services as native functions in spreadsheet applications
CN111279321A (en) Binding backend service endpoints to API functions in an API registry
US8549144B2 (en) Common configuration framework for applications to configure database objects and resources
US20210208854A1 (en) System and method for enhancing component based development models with auto-wiring
CN110619555A (en) Unified management method and device for order information, terminal equipment and medium
CN105144077A (en) Cloud services platform
CN107632869B (en) Method and equipment for loading user interface of POS application
CN101883084A (en) Method, adaptor and adaptor system for adapting to network service communication,
CN109828830A (en) Method and apparatus for managing container
CN110221840B (en) Function implementation method and device of application program, equipment and storage medium
CN113254825A (en) Page generation method and device, electronic equipment and storage medium
US11803786B2 (en) Enterprise integration platform
CN111045928A (en) Interface data testing method, device, terminal and storage medium
CN109901826A (en) For the data processing method of java applet, device and electronic equipment
US8972520B2 (en) Systems and methods providing mapping definition information for business data
CN115185599A (en) Project deployment method, system and storage medium based on Golang
CN114020498A (en) Remote calling method, device, equipment and storage medium for different deployment scenes
CN112667441A (en) Service module scheduling method, system and storage medium based on fault-tolerant function
CN112650598A (en) Multi-application access method for workflow system
US12026558B2 (en) Integration extensions
CN114185604B (en) Financial service cabin system and application method and device thereof, electronic equipment and medium
CN114202046B (en) Method, device, equipment and medium for generating two-dimension code based on SAP system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant