Your SlideShare is downloading. ×
0
Groovy Bridge
Groovy Bridge
Groovy Bridge
Groovy Bridge
Groovy Bridge
Groovy Bridge
Groovy Bridge
Groovy Bridge
Groovy Bridge
Groovy Bridge
Groovy Bridge
Groovy Bridge
Groovy Bridge
Groovy Bridge
Groovy Bridge
Groovy Bridge
Groovy Bridge
Groovy Bridge
Groovy Bridge
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Groovy Bridge

3,115

Published on

Discusses the new Groovy Bridge feature in WebSphere sMash

Discusses the new Groovy Bridge feature in WebSphere sMash

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,115
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
20
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. WebSphere sMash PHP/Groovy Bridge Rob Nicholson Ant Phillips rob_nicholson@uk.ibm.com antphill@uk.ibm.com
  • 2. IBM Software Group | WebSphere software Groovy Bridge – Compiling Scripts 2 WebSphere sMash PHP/Groovy Bridge
  • 3. IBM Software Group | WebSphere software Groovy Bridge – Importing Classes 3 WebSphere sMash PHP/Groovy Bridge
  • 4. IBM Software Group | WebSphere software Groovy Bridge – Method and Field Access 4 WebSphere sMash PHP/Groovy Bridge
  • 5. IBM Software Group | WebSphere software Groovy Bridge – Calling Meta Objects 5 WebSphere sMash PHP/Groovy Bridge
  • 6. IBM Software Group | WebSphere software Groovy Bridge – Calling Meta Objects Meta objects enable dynamic behavior to be defined at runtime 5 WebSphere sMash PHP/Groovy Bridge
  • 7. IBM Software Group | WebSphere software Groovy Bridge – Calling Meta Objects Meta objects enable dynamic behavior to be defined at runtime The Groovy bridge can dispatch to Groovy meta objects and so avoids messy calls to invokeMethod() and get/setProperty() 5 WebSphere sMash PHP/Groovy Bridge
  • 8. IBM Software Group | WebSphere software Groovy Bridge – Meta Objects COM/.NET 6 WebSphere sMash PHP/Groovy Bridge
  • 9. IBM Software Group | WebSphere software Groovy Bridge – Meta Objects COM/.NET ActiveXObject automatically imported if the Scriptom libraries are available 6 WebSphere sMash PHP/Groovy Bridge
  • 10. IBM Software Group | WebSphere software Groovy Bridge – Meta Objects COM/.NET ActiveXObject automatically imported if the Scriptom libraries are available Calls to the COM/.NET library are routed through Scriptom and into JACOB 6 WebSphere sMash PHP/Groovy Bridge
  • 11. IBM Software Group | WebSphere software Groovy Bridge – Meta Objects COM/.NET ActiveXObject automatically imported if the Scriptom libraries are available Calls to the COM/.NET library are routed through Scriptom and into JACOB Integration with PHP iteration if the COM component supports enumeration 6 WebSphere sMash PHP/Groovy Bridge
  • 12. IBM Software Group | WebSphere software Groovy Bridge – Range 7 WebSphere sMash PHP/Groovy Bridge
  • 13. IBM Software Group | WebSphere software Groovy Bridge – Range Range objects are a nice feature of Groovy 7 WebSphere sMash PHP/Groovy Bridge
  • 14. IBM Software Group | WebSphere software Groovy Bridge – Range Range objects are a nice feature of Groovy Dynamic evaluation of Groovy script 7 WebSphere sMash PHP/Groovy Bridge
  • 15. IBM Software Group | WebSphere software Groovy Bridge – Range Range objects are a nice feature of Groovy Dynamic evaluation of Groovy script Range objects support iteration 7 WebSphere sMash PHP/Groovy Bridge
  • 16. IBM Software Group | WebSphere software Groovy Bridge – Range Range objects are a nice feature of Groovy Dynamic evaluation of Groovy script Range objects support iteration Range implementations built into the PHP runtime 7 WebSphere sMash PHP/Groovy Bridge
  • 17. IBM Software Group | WebSphere software Groovy Bridge – Closures and Curry 8 WebSphere sMash PHP/Groovy Bridge
  • 18. IBM Software Group | WebSphere software Groovy Bridge – More Closures 9 WebSphere sMash PHP/Groovy Bridge
  • 19. IBM Software Group | WebSphere software Summary Integrates PHP and Groovy in WebSphere sMash – Importing Groovy classes into PHP runtime – Invoking methods and accessing fields on Groovy objects – Interactions with Groovy meta objects – Closures and currying All the examples start with a PHP script and call into Groovy – JSR-223 implementation will enable Java/Groovy to call PHP 10 WebSphere sMash PHP/Groovy Bridge

×