@Target(value={FIELD,METHOD}) @Retention(value=RUNTIME) public @interface PortableProperty
value() and codec() can be explicitly specified they can be determined by classes that use this annotation. Hence these attributes serve as hints to the underlying parser.public abstract int value
PofWriterpublic abstract Class<?> codec
Codec to use to override the default behavior in serializing and deserializing a property.
The Class specified must have a no-arg constructor and must implement one of:
Collection interface. A Codec implementation that supports the Collection type will be used.Map interface. A Codec implementation that supports the Map type will be used.LongArray interface. A Codec implementation that supports the LongArray type will be used.Returns:a Class representing the codec to use for this property, or a an implementation of a well known type (Collection, Map, LongArray, or an array)Default:com.tangosol.io.pof.reflect.Codecs.DefaultCodec.classCopyright © 2000, 2016, Oracle and/or its affiliates. All rights reserved.