Friday, September 14, 2012

Get Step Plugins UDJC

I like the Step Information dialog in the Help menu of Spoon, it lists all the information about the loaded step plugins.  It occurred to me that it might be nice to know this info while running a job or transformation, and while looking through the code, it turned out to be pretty easy.

To do this, I created a User-Defined Java Class (UDJC) step with the usual Generate Rows step as a trigger:


The code for the UDJC step is on Gist here.  The results are similar to the Step Information dialog:



This code can easily be adapted to fetch all plugins, or even to specify the type(s) on the incoming stream.

No comments:

Post a Comment