gboat2.base.core.annotation
注释类型 Modules
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Modules
一个 Action 类可以配置成多个模块,每个模块可以自定义入口方法,可带参数,可带模块默认编码,如:
@Modules( {
@Module(name = "首选项1", code = "CODE1"),
@Module(name = "首选项2", code = "CODE2", entryMethod = "prefer2"),
@Module(name = "首选项3", code = "CODE3", entryMethod = "prefer3", params = { "a", "1" }),
@Module(name = "首选项4", code = "CODE4", entryMethod = "prefer3", params = { "a", "2" })
})
public class PreferenceAction extends BaseActionSupport {
...
}
- 从以下版本开始:
- 3.0
- 作者:
- lysming, tanxw
- 另请参见:
Module
value
public abstract Module[] value
Copyright © 2014 广联达软件股份有限公司(Glodon Software Co., Ltd.). All rights reserved.