
com.tangosol.io.pof.annotation.Portable Maven / Gradle / Ivy
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.tangosol.io.pof.annotation;
import com.tangosol.io.pof.PofAnnotationSerializer;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Portable marks a class as being eligible for use by a
* {@link PofAnnotationSerializer}. This annotation is only permitted at the
* class level and is a marker annotation with no members. The following
* class illustrates how to use {@link Portable} and {@link PortableProperty}
* annotations.
*
* @Portable
* public class Person
* {
* @PortableProperty(0)
* public String getFirstName()
* {
* return m_firstName;
* }
*
* private String m_firstName;
* @PortableProperty(1)
* private String m_lastName;
* @PortableProperty(2)
* private int m_age;
* }
*
*
* @author hr
* @since 3.7.1
* @see PortableProperty
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Portable
{
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy