I have opened a ticket to track sparkplug improvement proposals: SPARK-1311
Also, I created two subtasks: one for the load plugins before workspace initalization
and a new one that describes a new proposal:
SPARK-1313: Enhance ability to overwrite spark properties values through plugin
Description:
-improved Spark Resources management: SparkRes.java and Default.java
by adding a new SparkPropertyResourceBundle as a wrapper around resource bundles
instances from SparkRes or Default
When a property value is retrieved, first is looked in a specific plugin location.
If not found it falls back to the Spark default property value
You simply add spark.properties and default.properties with keys/values you want overwritten by plugin
inside plugin’s .jar archive file