This interface specifies the methods a {@link Work Work} instance uses toassociate a
List
of {@link WorkContext WorkContext} instances tobe set when the
Work
instance gets executed by a {@link WorkManager WorkManager}.
A Work
instance could optionally implement this interface to indicate to the WorkManager
, that the WorkContext
s provided by this Work
instance through the {@link #getWorkContexts() getWorkContexts} method must be used while settingthe execution context of the Work
instance. If the {@link #getWorkContexts() getWorkContexts} method returns an empty Listor null, the WorkManager must treat it as if no additional execution contexts are associated with that Work instance.
@since 1.6
@version Java EE Connector Architecture 1.6