Bugzilla – Bug 4797
BatchRuntime.getJobOperator should return the same instance when called repeatedly
Last modified: 2013-03-16 21:22:30 UTC
* The getJobOperator factory method returns
* an instance of the JobOperator interface.
* Repeated calls to this method returns the
* same instance.
* @return JobOperator instance.
The current impl returns different instances.
So Cheng, thanks for reminding me that I'd forgotten that we violated this statement in the spec.
Let me ask, though... Chris, why do we need to specify this?
The JobOperator spec API doesn't imply that an instance carries any state, right? Plus there's going to be a point where the statement breaks... maybe it breaks when you're in a new classloader scope, say. Do we need to say anything here?
There is probably no reason for that requirement. It's an implementation decision. I think it should be removed from the spec. Change coming in PFD v1.7.