Class IdentityAttributeCopier<T>
- java.lang.Object
-
- org.infinispan.commons.configuration.attributes.IdentityAttributeCopier<T>
-
- All Implemented Interfaces:
AttributeCopier<T>
public class IdentityAttributeCopier<T> extends Object implements AttributeCopier<T>
IdentityAttributeCopier. ThisAttributeCopierdoes not copy the source attribute, but returns it, so that the same instance can be shared across multiple configurations. Since this can only be safely done with threadsafe objects which store no state, be very careful when using it.- Since:
- 7.2
- Author:
- Tristan Tarrant
-
-
Constructor Summary
Constructors Constructor Description IdentityAttributeCopier()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TcopyAttribute(T attribute)static <T> IdentityAttributeCopier<T>identityCopier()
-
-
-
Method Detail
-
identityCopier
public static <T> IdentityAttributeCopier<T> identityCopier()
-
copyAttribute
public T copyAttribute(T attribute)
- Specified by:
copyAttributein interfaceAttributeCopier<T>
-
-