System for hiding runtime environment dependent part

a runtime environment and dependency technology, applied in the software field, can solve the problems of poor maintenance and re-usability, and achieve the effect of improving maintenance and re-usability of software, avoiding the necessity of re-compiling, and changing easily

Inactive Publication Date: 2006-07-11
KK TOSHIBA
View PDF12 Cites 34 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

[0029]According to the first to third features of the present invention, since at least one dependence information candidate required for processing a part that depends on the runtime environment in software are separately prepared without being embedded in software, and dependence information corresponding to the current runtime environment is dynamically acquired from the dependence information candidates on the basis of environment information that pertains to the runtime environment of software, the part that depends on the runtime environment can be easily changed, and necessity of re-compiling can be avoided, thus improving maintenance and re-usability of software.
[0030]According to the fourth feature of the present invention, in addition to the first to third features mentioned above, since acquisition target element names indicating environment information to be used upon selecting a dependence information candidate are separately prepared without being embedded in software, and environment information to be acquired is dynamically acquired, the part that depends on the runtime environment can be further easily changed.

Problems solved by technology

However, in such a Java program, since information (“Microsoft”, “SUN Microsystems”) as a basis for switching decision, the shared library name (“MS”, “SUN”) to be loaded, and the like are directly written in Java code (see the italics in FIG. 18), re-compiling is required every time information as a basis for switching decision, the shared library name, and the like are added / changed, resulting in poor maintenance and re-usability.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • System for hiding runtime environment dependent part
  • System for hiding runtime environment dependent part
  • System for hiding runtime environment dependent part

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0074]Examples of the runtime environment dependency hiding apparatus shown in FIGS. 1 and 2 will be explained in detail below with reference to FIGS. 4 to 8. In this example, a native method interface as a rule for making a program described in the Java language correspond to a program described in another language such as C, C++, or the like will be taken as an example of a part that depends on the runtime environment in a Java program, and a method of eliminating platform dependence of the native method interface will be explained. As described above, different native method interfaces are prepared in correspondence with the kinds of VMs. That is, when the VM to be used is the JDK VM provided by Sun Microsystems, Inc., a shared library corresponding to JNI (Java Native Interface) must be loaded; when the VM to be used is the MS VM available from Microsoft Corp., a shared library corresponding to RNI (Raw Native Interface) must be loaded.

[0075]As shown in FIG. 4, the runtime envir...

example 2

[0098]An example of the runtime environment dependency hiding apparatus shown in FIG. 3 will be explained below with reference to FIGS. 9 to 13. In this example as well, a native method interface will be taken as an example of a part that depends on the runtime environment in a Java program, and a method of eliminating platform dependence of the native method interface will be explained, as in the example shown in FIGS. 4 to 8.

[0099]As shown in FIG. 9, the runtime environment dependency hiding apparatus 52 comprises a runtime information acquisition unit (environment information acquisition unit) 1, property list generation unit (dependence information generation unit) 2, property name generation unit (search key generation unit) 3, shared library name search unit (dependence information search unit) 4, shared library load unit (process execution unit) 5, and acquisition target element name extraction unit 17, and these units are controlled by a main logic unit 10.

[0100]The runtime ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

This invention provides a runtime environment dependency hiding apparatus and the like, which hides a part that depends on the runtime environment in software which runs on a plurality of runtime environments having different specifications. An environment information acquisition unit acquires environment information that pertains to the runtime environment of a Java program from standard properties and the like. A dependence information generation unit generates a dependence information list required for processing the part that depends on the runtime environment in the Java program on the basis of dependence information generation information. A search key generation unit generates a search key in accordance with search key generation knowledge on the basis of the environment information acquired by the environment information acquisition unit. A dependence information search unit searches the dependence information list generated by the dependence information generation unit for dependence information corresponding to the current runtime environment on the basis of the search key generated by the search key generation unit. A process execution unit executes the processing of the part that depends on the runtime environment on the basis of the dependence information obtained by the dependence information search unit.

Description

BACKGROUND OF THE INVENTION[0001]1. Field of the Invention[0002]The present invention relates to software which can run on a plurality of environments having different specifications and, more particularly, to a runtime environment dependency hiding apparatus and method which can achieve easy maintenance and high re-usability of software by hiding a part that depends on the runtime environment in software to make it invisible, and a computer readable recording medium that records a runtime environment dependency hiding program.[0003]2. Related Background Art[0004]Since source code of software is normally converted by a compiler into that in a runtime format premised on an operating system, peripheral devices, command sets unique to a CPU, and the like, the runtime format generated from source code depends on the platform such as an operating system and the like.[0005]Since such platform dependence of software is a serious bottleneck upon development and distribution of versatile sof...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(United States)
IPC IPC(8): G06F9/44G06F9/45
CPCG06F9/455
Inventor OMORI, MARI
Owner KK TOSHIBA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products