Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As such, this class was used mostly in Spoon, in StepMeta and in the Repository plugins.   Here are the main changes to make:

  • ClassLoaderStepLoader.findStepPluginWithID(id) : change to: --> PluginRegistry.findPluginWithId(StepPluginType.getInstance(), id)
  • StepPlugin : change to --> PluginInterface
  • StepLoader.getStepClass(StepPlugin) : --> (StepMetaInterface)PluginRegistry.loadClass(PluginInterface, PluginClassType.MainClassType)
  • ClassLoaderStepLoader.getStepPluginID(StepMetaInterface) : --> PluginRegistry.getPluginId(StepPluginType.getInstance(), StepMetaInterface)
  • init() : --> taken over by PluginRegistry.init() and StepPluginType.searchPlugins()
  • getPluginPackages() : --> is now available as getPluginPackages(PluginTypeInterface) returning a list of package names.
  • getPluginInformation() : --> getPluginInformation(PluginTypeInterface) returning a RowBuffer object

...

  • getID(): since this wasn't a single ID, it got renamed to getIds() but it's an array of String as well.
  • getDescription(): this was actually the name of the step so it's now called: getName()
  • getTooltip(): this was actually the description of the step so it's now called: getDescription()
  • getJarfiles(): moved to a list: getLibraries()
  • getClassname(): move to a map: getClassMap()
  • getIconFilename(): renamed to: getImageFile();

JobEntryLoader

The job entry loader singleton was used everywhere we needed to load a JobEntryInterface or if we wanted to learn more about a certain step.  Unfortunately a certain developer made a mistake in the naming of a few things.  As such, here are the changes in the objects:

  • @Job --> @JobEntry: Since we plan to have Job plugins in the future, the appropriate name for a job entry annotation is .. euh.. @JobEntry.
  • Since the Annotation changed anyway we also renamed the members of the JobEntry annotation:
    • name() --> id()
    • description() --> name()
    • tooltip() --> description()
  • This better reflects the actual use of the fields (to put it mildly)

The JobEntryLoader class was used mostly in Spoon, JobEntryCopy and in the Repository plugins.   Here are the main changes to make:

  • JobEntryLoader.findJobEntriesWithDescription(String) --> PluginRegistry.findPluginWithName(StepPluginType.getInstance(), description)
  • JobPlugin (also with a wrong name!) --> PluginInterface
  • JobEntryLoader.getStepClass(StepPlugin) --> (JobEntryInterface)PluginRegistry.loadClass(PluginInterface, PluginClassType.MainClassType)
  • JobEntryLoader.getJobEntryPluginID(JobEntryInterface) --> PluginRegistry.getPluginId(JobEntryPluginType.getInstance(), JobEntryInterface)
  • init(): taken over by PluginRegistry.init() and JobEntryPluginType.searchPlugins()
  • getPluginPackages(): is now available as getPluginPackages(PluginTypeInterface) returning a list of package names.
  • getPluginInformation(): getPluginInformation(PluginTypeInterface) returning a RowBuffer object

The JobPlugin class and the PluginInterface are quite similar, see the StepLoader paragraph above for more information.