public class DefinitionCloner extends Object
Cloner
directly. To avoid duplicating configuration code everywhere,
we're introducing this wrapper which pre-configures it to work nicely with our definition objects.
Specifically, it prevents cloning Context
.
Note: Initially we wanted to avoid cloning all proxy Callback
fields of definitions, which we
use extensively in the i18n mechanism. But that leads to the cloned object to still delegate method calls to the original
due to proxy specifics.Constructor and Description |
---|
DefinitionCloner() |
Copyright © 2015 Magnolia International Ltd.. All rights reserved.