public final class ApplicationModuleWrapper<V extends java.io.Serializable>
extends SerializableCallable<V>
A serializable callable that ensures an ApplicationModuleHandle for the
lifetime of the wrapped callable. The wrapped callable must implement
ApplicationModuleReceiver in order to receive the ApplicationModuleHandle
before call is invoked.
The ApplicationModuleWrapper instantiates an ApplicationModuleHandle of type
{@link oracle.jbo.common.PropertyConstancts.ASYNC_APPLICATION_MODULE_DEF) as
defined in the AdfmConfig. The async ApplicationModule def must declare
an Async usage that points to the appropriate configuration in the
ApplicationModule def's BC project.
An ApplicationModueReceiver may immediately acqure an ApplicationModule from
the handle on setApplicationModuleHandle or defer acquisition (async script
methods will defer acquisition to when/if an AM is requested from the value
supplier).
The handle is always destoryed on wrapped task completion. Before the handle
is destroyed the ApplicationModule transaction is commited (no exceptions)
or rolled back (exception case).
Since:
release specific (what release of product did this appear in)