public interface ScopeableFactory
Scopeable
objects to be notified of scope
openings and closings by the TransactionManager
. Classes which
implement this interface typically are registered
during the
bootstrap phase of the server environment.Modifier and Type | Method and Description |
---|---|
Scopeable |
createScopeable()
Return a
Scopeable instance. |
Scopeable createScopeable()
Scopeable
instance. The
TransactionManager
registers this instance with each
context local work area it creates.
This method may optionally determine that the Scopeable
type created by this factory is not appropriate for this particular
context (account). In this case a null
must be returned
which tells the TransactionManager
not to register any
Scopeable
for this factory.
TransactionManager
notifies
of runtime scope openings and closings or null
if no object should be registered in this context.