We are very lucky to have Baruch Sadogursky (a.k.a. JBaruch) stop by NYC on his way to JavaOne. He can only make it on this day, hence the Friday meeting. Hope you can make it - should be a great one! As you know, Groovy is especially well suited for creation of DSLs - Baruch will talk about that, and more!
Baruch Sadogursky (a.k.a JBaruch) is the Developer Advocate of JFrog, the creators of Artifactory Binary Repository, the home of Bintray, and JavaOne 2011 Duke Choice Awards winner. For a living he hangs out with the JFrog tech leaders, writes some code around Artifactory and Bintray, and then speaks and blogs about all that. He does it repeatedly for the last 10 years and enjoys every moment of it.Baruch is @jbaruch on twitter and mostly blogs on http://blog.bintray.com and http://blogs.jfrog.org. His speaker history on Lanyrd: http://lanyrd.com/profile/jbaruch/sessions/
Plugging the users in - extend your application with pluggable Groovy DSL. It is often beneficial to allow users extend your software with their own logic. With the rise of dynamic languages on the JVM it is also much more easier to do than ever before. In this session we will share our experience in creating Groovy authored user plugins interface.
After a brief introduction to domain specific languages (DSLs), their relevance to user plugins and how they can be easily implemented in Groovy, we’ll look at more user-friendly, but developer-challenging type of DSLs, which support plugins written both in Groovy or Java.
Good public API design is another very important aspect - while the APIs have to be broad enough to allow interesting functionality, internals should stay close to allow changes and further development. Exposing APIs to the world come with great responsibility - once published they can’t be changed without a price, so it is important keep backwards compatibility in mind.
Another very important aspect is security - you let strangers into your chambers, and you better be ready. Leveraging security mechanisms is essential to establish proper sandboxing and protect your application from malicious or faulty plugins.
Finally, we will cover another very important and nontrivial aspect of user plugins exposure - the classpath isolation when your plugins require dependencies. We will compare different solutions like establishing classpath hierarchies, OSGi, JBoss modules and the long-awaited Project Jigsaw.---
He going to deliver these talks in SpringOne 2GX this year and can stop by way to JavaOne in NYC Sept 20.