/* * @(#)Format.java 2013-1-31 下午23:33:33 * * Copyright (c) 2011-2013 Makersoft.org all rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * */ package org.makersoft.mvc.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; /** * 标记此方法按指定方式格式化输出 * * @version 2013-1-31 下午4:24:46 * @author Feng Kuok */ @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface Format { Render[] render() default Render.JSON; /** * 序列化包含属性 */ String[] includes() default ""; /** * 序列化排除属性 */ String[] excludes() default ""; /** * 是否排除父类中的属性 * @return default false */ boolean ignoreHierarchy() default false; }