| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final boolean | |
| private final ReadWriteCopyStrategy | |
| private final ClassLoader |
| Access | Constructor and Description |
|---|---|
| public | CopyStrategyHandler(boolean
copy on read flag copyOnRead, boolean copy on write flag copyOnWrite, ReadWriteCopyStrategy<Element> the copy strategy to use copyStrategy, ClassLoader loader)Creates a CopyStrategyHandler based on the copy configuration |
| Modifier and Type | Method and Description |
|---|---|
| public Element | Returns: a copy of the element with the reconstructed original valuethe element to copy for read element)Perform copy on read on an element if configured |
| pack-priv Element | Returns: a copy of the element with a storage-ready valuethe element to copy for removal element)Perform copy for the element If both copy on read and copy on write are set to true |
| pack-priv Element | Returns: a copy of the element with a storage-ready valuethe element to copy for write element)Perform copy on write on an element if configured |
| pack-priv boolean |
| copyOnRead | back to summary |
|---|---|
| private final boolean copyOnRead | |
| copyOnWrite | back to summary |
|---|---|
| private final boolean copyOnWrite | |
| copyStrategy | back to summary |
|---|---|
| private final ReadWriteCopyStrategy<Element> copyStrategy | |
| loader | back to summary |
|---|---|
| private final ClassLoader loader | |
| CopyStrategyHandler | back to summary |
|---|---|
| public CopyStrategyHandler(boolean copyOnRead, boolean copyOnWrite, ReadWriteCopyStrategy<Element> copyStrategy, ClassLoader loader) Creates a CopyStrategyHandler based on the copy configuration
| |
| copyElementForReadIfNeeded | back to summary |
|---|---|
| public Element copyElementForReadIfNeeded(Element element) Perform copy on read on an element if configured | |
| copyElementForRemovalIfNeeded | back to summary |
|---|---|
| pack-priv Element copyElementForRemovalIfNeeded(Element element) Perform copy for the element If both copy on read and copy on write are set to true | |
| copyElementForWriteIfNeeded | back to summary |
|---|---|
| pack-priv Element copyElementForWriteIfNeeded(Element element) Perform copy on write on an element if configured | |
| isCopyActive | back to summary |
|---|---|
| pack-priv boolean isCopyActive() Returns wether copyOnRead or copyOnWrite is set
| |