@Service public class CyclicMappingSupport extends Object
resource models.| Constructor and Description |
|---|
CyclicMappingSupport() |
| Modifier and Type | Method and Description |
|---|---|
<T> Mapping<T> |
begin(Mapping<T> mapping)
Contract: When invoked and
null is returned,
one must invoke end(Mapping) after the corresponding mapping was executed.Otherwise, a leak in the form of persisting thread-local attributes is introduced. |
void |
end(Mapping mapping)
Ends a mapping that was
begun. |
Set<Mapping> |
getOngoingMappings() |
public <T> Mapping<T> begin(Mapping<T> mapping)
null is returned,
one must invoke end(Mapping) after the corresponding mapping was executed.mapping - must not be null.null if the given mapping has not occurred
yet. The provided mapping must only be executed if this emthod returns null.
Otherwise, the execution results in an infinite loop.public void end(Mapping mapping)
begun.mapping - must not be null.Copyright © 2014–2015. All rights reserved.