I wonder how to pass an instance variable externally in Quartz?
Below is pseudo code I would like to write. How can I pass externalInstance into this Job?
Solve this problem by creating one interface with one HashMap putting required information there.
HashMap
Implement this interface in your Quartz Job class this information will be accessible.
Job
In IFace
IFace
Map map = new HashMap<>();
In Job
map.get(context.getJobDetail().getKey()) => will give you Object