The DriverSupport Java Interface¶
Any Java class that should be recognized as a driver support plugin must implement the DriverSupport interface. The full details of this interface are described in the Masking Plugin API Javadoc.
Method Overview¶
This section provides a high-level overview of the methods in the DriverSupport interface. For complete details, consult the Masking Plugin API Javadoc included in the Algorithm SDK archive.
- getTasks - This method is used to determine the list of available tasks to execute on a corresponding data source. The order in which the tasks are added to the list of tasks indicates the order in which the tasks will be executed on the target data source.
The Life Cycles of Driver Support Objects¶
The Extensibility framework uses objects classes implementing DriverSupport interface for several distinct purposes. These object life cycles are as follows:
Plugin Discovery¶
This occurs when the extensibility framework evaluates the capabilities present in a DriverSupport class.
- Java object creation - an object of the driver support class is created
- getTasks - determines all available tasks
- getTaskName - get the name of each task
- Disposal - the Java object is discarded
Driver Support Use¶
This is the life cycle of a driver object when executing a masking job.
- Java object creation - an object of the driver support class is created
- Configuration injection - the masking inventory is used to instantiate a JobInfo object and the database connection is used to instantiate the Connection object (the target SQL connection)
- setup - the setup method is called once
- preJobExecute - the preJobExecute method is called once before executing the transformation
- postJobExecute - the postJobExecute method is called once after executing the transformation
- Disposal - the Java object is discarded