
se.l4.commons.serialization.Use Maven / Gradle / Ivy
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 extends SerializerOrResolver> value();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy