Class SimpleObjectCopyFactory
- java.lang.Object
-
- org.cache2k.jcache.provider.generic.storeByValueSimulation.SimpleObjectCopyFactory
-
- All Implemented Interfaces:
ObjectCopyFactory
public class SimpleObjectCopyFactory extends Object implements ObjectCopyFactory
For immutable objects we just pass the reference through, other objects need to be copied with clone or serialization.- Author:
- Jens Wilke
-
-
Constructor Summary
Constructors Constructor Description SimpleObjectCopyFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> ObjectTransformer<T,T>
createCopyTransformer(Class<T> clazz)
<T> ObjectTransformer<T,T>
createCopyTransformer(Class<T> clazz, ClassLoader classLoader)
Create a transformer class which actually does no type changes.
-
-
-
Method Detail
-
createCopyTransformer
public <T> ObjectTransformer<T,T> createCopyTransformer(Class<T> clazz)
- Specified by:
createCopyTransformer
in interfaceObjectCopyFactory
-
createCopyTransformer
public <T> ObjectTransformer<T,T> createCopyTransformer(Class<T> clazz, ClassLoader classLoader)
Description copied from interface:ObjectCopyFactory
Create a transformer class which actually does no type changes. If the factory does know how to handle the type, it returns null.- Specified by:
createCopyTransformer
in interfaceObjectCopyFactory
-
-