Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.io.pof.annotation
Interface PortableProperty

All Superinterfaces:
java.lang.annotation.Annotation

@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
public interface PortableProperty
extends java.lang.annotation.Annotation

A PortableProperty marks a member variable or method accessor as a POF serialized attribute. Whilst the 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.

Since:
3.7.1
Author:
hr

Method Summary
 java.lang.Class codec()
          A codec to use to short-circuit determining the type via either method return type or field type.
 int value()
          The index of this property

 

Methods inherited from interface java.lang.annotation.Annotation
annotationType, equals, hashCode, toString

 

Method Detail

value

int value()
The index of this property
Returns:
POF index
See Also:
PofWriter

codec

java.lang.Class codec()
A codec to use to short-circuit determining the type via either method return type or field type.

This could be used to determine concrete implementations of interfaces, i.e. when the method return is a Map this type definition could instruct the code to utilize a LinkedHashMap

Returns:
class representing the codec to use for this property

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.