WebSphere sMash / Project Zero
PHP/Java Bridge
Ant Phillips
antphill@uk.ibm.com
IBM Software Group | WebSphere software
Review of Java Bridge in sMash 1.0
Basic access to Java
methods and fields - types
are automatically converted
at boundary of PHP runtime
Static methods and fields
are accessible by using the
built in JavaClass class
Java exceptions can be
caught in PHP scripts
2
WebSphere sMash PHP/Java Bridge
IBM Software Group | WebSphere software
Enhancements in sMash 1.1 – Part I
Bridging between PHP and Java iterators
Signatures provide explicit control for
overloaded constructors and methods
3
WebSphere sMash PHP/Java Bridge
IBM Software Group | WebSphere software
Enhancements in sMash 1.1 – Part II
Importing a Java class creates a PHP
class that has the same shape
4
WebSphere sMash PHP/Java Bridge
IBM Software Group | WebSphere software
Enhancements in sMash 1.1 – Part III
Extending a Java class inside PHP is
possible but has some limitations
Java bean access maps field
access onto get/set method calls
5
WebSphere sMash PHP/Java Bridge
IBM Software Group | WebSphere software
Enhancements in sMash 2.0
Access to static methods and fields
directly through the imported class name
Built in BigDecimal
and BigInteger classes
Performance improvements - for example
method invocation time reduced by 50%
6
WebSphere sMash PHP/Java Bridge
0 comments
Post a comment