Code Improvement: Default methods in IWorkResource
The IWorkResource interface is used to manage resources on the WorkUnit.
- It has a lot of methods of which only few need to be implemented. Hence, they should all have default implementations.
- Frequently a work resource is used to cache some data during the unit of work. It should be possible to simply put an Object on the unit of work and only if that implements IWorkResource, the IWorkResource semantic should be invoked.