You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2020/12/15 13:53:39 UTC

[incubator-hop-docs] branch asf-site updated: HOP-2284 : Update kettle to hop plugin porting documentation

This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-hop-docs.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new abcb22b  HOP-2284 : Update kettle to hop plugin porting documentation
     new 0c2b68f  Merge pull request #21 from mattcasters/asf-site
abcb22b is described below

commit abcb22b8c5176bc59832908dd66bb6d88e63376d
Author: Matt Casters <ma...@gmail.com>
AuthorDate: Tue Dec 15 13:22:22 2020 +0100

    HOP-2284 : Update kettle to hop plugin porting documentation
---
 .../modules/ROOT/pages/porting-kettle-plugins.adoc          | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/hop-dev-manual/modules/ROOT/pages/porting-kettle-plugins.adoc b/hop-dev-manual/modules/ROOT/pages/porting-kettle-plugins.adoc
index b4f6e35..8f2f5ad 100644
--- a/hop-dev-manual/modules/ROOT/pages/porting-kettle-plugins.adoc
+++ b/hop-dev-manual/modules/ROOT/pages/porting-kettle-plugins.adoc
@@ -72,6 +72,19 @@ public class SampleMeta extends BaseTransformMeta implements ITransformMeta<Samp
 
 Any references to Repository, including parameters and the saveRep() and loadRep() methods in Transforms and Actions can be safely removed
 
+== VariableSpace
+
+VariableSpace was renamed to IVariables
+The API has also been cleaned up and simplified.  For example, ```environmentSubstitute()``` is now called ```resolve()```
+Please note that metadata objects (TransMeta, JobMeta, DatabaseMeta, ...) no longer implement ```VariableSpace``` (or ```IVariables```).
+Only runtime objects like Pipeline, Workflow, ITransform and so on have a state in Hop.
+
+== Extension point plugins
+
+If you're porting classes implementing an Extension Point plugin by implementing ExtensionPointInterface please note that you'll receive an extra parameter which is IVariables.  It aims to contain the variables of the parent object in the XP context.
+Obviously the interface name changed to IExtensionPoint.
+You can also use generics to specify the expected class of the receiving subject.
+
 == Slave Servers and Database Connections
 
 These objects are no longer stored in a Pipeline or a Workflow, they are now fully shared objects so any references of those in the interface methods of Transforms and Actions can be safely removed: