Bug 4797 - BatchRuntime.getJobOperator should return the same instance when called repeatedly
BatchRuntime.getJobOperator should return the same instance when called repea...
Product: jbatch
Classification: Unclassified
Component: source
: P5 major
: ---
Assigned To: cvignola
Depends on:
  Show dependency treegraph
Reported: 2013-03-15 03:21 UTC by cf126330
Modified: 2013-03-16 21:22 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description cf126330 2013-03-15 03:21:21 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.
Comment 1 ScottKurz 2013-03-15 03:42:13 UTC
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?
Comment 2 cvignola 2013-03-16 21:22:30 UTC
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.