package org.jsondoc.core.annotation; 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; import org.jsondoc.core.util.JSONDocDefaultType; /** * This annotation is to be used on your method and represents the returned value * @see ApiObject * @author Fabio Maffioletti * */ @Documented @Target(value=ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface ApiResponseObject { /** * Specify this element if are using old style servlets which return void for methods like doGet and doPost * @return */ public Class<?> clazz() default JSONDocDefaultType.class; }