6.4.2 Leveraging JavaBean Properties

If the custom data loader includes Java Bean properties (those with get/set methods), you can configure these properties in the data source definition. This allows you to write a more generic, reusable, data loader implementation. For example, if the custom data loader obtains SharePoint lists, and requires a URL, user name, and password, you can create an individual data source for each property combination (using the same data loader class), rather than writing multiple classes.

If a BeanInfo class is associated with the data loader, you can provide display names, descriptions, custom editors, etc., for the class. You can also define a “secret” attribute for passwords, etc., which will use a password field (masked text) in the interface and encrypt the value in the data source file.

<< Using a Data Helper © 1996-2013 InetSoft Technology Corporation (v11.4) 6.4.3 Defining a Java Object Data Source >>