public class ExplicitInterposition extends Object
Constructor and Description |
---|
ExplicitInterposition()
Create a new instance and remember any current transaction that may be
associated with the invoking thread so that it can be restored once
interposition has finished.
|
ExplicitInterposition(boolean remember)
Create a new instance.
|
ExplicitInterposition(Control action,
boolean remember)
Create a new instance and interpose with the specified transaction.
|
ExplicitInterposition(PropagationContext ctx,
boolean remember)
Create a new instance and interpose with the specified transaction.
|
Modifier and Type | Method and Description |
---|---|
void |
finalize() |
void |
registerTransaction(Control action)
Perform interposition with the specified transaction.
|
void |
unregisterTransaction()
We need this explicit method because we cannot rely upon the object
"destructor" being called by the time the method which instantiated the
interposition class ends!
|
public ExplicitInterposition()
public ExplicitInterposition(boolean remember)
public ExplicitInterposition(Control action, boolean remember) throws InterpositionFailed, SystemException
InterpositionFailed
SystemException
public ExplicitInterposition(PropagationContext ctx, boolean remember) throws InterpositionFailed, SystemException
InterpositionFailed
SystemException
public final void registerTransaction(Control action) throws InterpositionFailed, SystemException
InterpositionFailed
SystemException
public void unregisterTransaction() throws SystemException
SystemException
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.