The Extensible Driver Supports framework makes certain services available to the driver support implementation. This prevents the driver support from having to re-implement code to perform certain routine tasks and facilitates seamless integration with the Masking Engine. This functionality is exposed to the driver support class via the ComponentService interface.
Whenever a new Masking driver support instance is required for masking, the extensibility framework first injects any saved configuration, then invokes the objects setup method. This method is passed a reference to an object that implements ComponentService. The driver support's setup method can then use this object to access a number of provider methods:
- getInstanceName - Get the name of this instance. Because the instance name it is not typically a configurable field in the driver support, the getName method will not correctly return the name of an driver support instance, even after JSON configuration injection. This method will always return the correct instance name as known to the Masking Engine.
- getTargetConnection - Gets a java.sql.Connection that is made using the target database connector.
- getJobInfo - Gets a jobInfo object, which maps the names of tables, schemas, and columns that are in the masking ruleset.
- getLogService - Get a logger object, as described in this section
Getting More Information
Refer to the com.delphix.masking.api.provider package in the Javadoc for detailed information.