All Downloads are FREE. Search and download functionalities are using the official Maven repository.

se.l4.commons.serialization.Use Maven / Gradle / Ivy

There is a newer version: 0.4.2
Show newest version
package se.l4.commons.serialization;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation to mark which serializer to use for a certain class.
 * 
 * @author Andreas Holstenson
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD, ElementType.TYPE })
@Documented
public @interface Use
{
	/**
	 * The class to use for serialization.
	 * 
	 * @return
	 */
	Class value();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy