Class IdentityAttributeCopier<T>
- java.lang.Object
-
- org.infinispan.commons.configuration.attributes.IdentityAttributeCopier<T>
-
- All Implemented Interfaces:
AttributeCopier<T>
public class IdentityAttributeCopier<T> extends java.lang.Object implements AttributeCopier<T>
IdentityAttributeCopier. ThisAttributeCopier
does 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
-
-
Field Summary
Fields Modifier and Type Field Description static AttributeCopier<java.lang.Object>
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
copyAttribute(T attribute)
-
-
-
Field Detail
-
INSTANCE
public static final AttributeCopier<java.lang.Object> INSTANCE
-
-
Method Detail
-
copyAttribute
public T copyAttribute(T attribute)
- Specified by:
copyAttribute
in interfaceAttributeCopier<T>
-
-