Dynamically Loading Custom Methods

Adeptia Connect supports dynamic loading of custom methods in the Web Mapper. It loads the custom methods available in the Custom Classes folder, under the Method > Global node in the Parameters Panel. This enables you to access any custom method from the Web Mapper itself, without any need to specify method parameters, such as class name, method name and the number of arguments. 

Steps to dynamically load Custom Methods

  1. Copy all the class files in the Custom Classes folder and then restart the kernel.

    The current implementation of Global Methods does not support package hierarchy. So all class files that are directly placed in the Custom Classes folder, will be visible through the Method > Global node in the Parameters Panel.
  2. Ensure that the source and destination layout are loaded and all their elements are listed under their respective nodes. 



  3. Expand the Global Methods node to display all the class files present in the Custom Classes folder.



    You can view more information (such as return type and parameter types) about a custom method as a tool-tip, by placing the cursor over the icon  of Custom Method node.

  4. You can then map the custom method to a destination element by double-clicking the custom method and then mapping by providing the input parameters.