摘要 |
<P>PROBLEM TO BE SOLVED: To reduce an overhead when accessing to a static class such as Java(R) VM from a dynamic script language such as PHP. <P>SOLUTION: A JAVA class loader which generates and loads an interface class of Java I(p) determined uniquely from a property name p of PHP according to need, is prepared. By generating and caching the class of Java corresponding to hierarchy of the PHP class, a step prepared by the same class hierarchy on Java as the one on PHP generated dynamically is executed, and the Java class is declared so as to implement the interface class I(p). By having a code of property access as an access to Java field as an implementation of a method within the interface, the step which enables the property access through the interface is executed. <P>COPYRIGHT: (C)2012,JPO&INPIT |