本文整理汇总了Java中org.osgl.mvc.annotation.Before类的典型用法代码示例。如果您正苦于以下问题:Java Before类的具体用法?Java Before怎么用?Java Before使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Before类属于org.osgl.mvc.annotation包,在下文中一共展示了Before类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: mockFormat
import org.osgl.mvc.annotation.Before; //导入依赖的package包/类
@Before
public void mockFormat(String fmt, ActionContext context) {
if ("json".equals(fmt)) {
context.accept(H.Format.JSON);
}
context.session().put("foo", "bar");
}
示例2: mockFormat
import org.osgl.mvc.annotation.Before; //导入依赖的package包/类
@Before
public void mockFormat(String fmt) {
if ("json".equals(fmt)) {
context.accept(H.Format.JSON);
}
context.session().put("foo", "bar");
}
示例3: start
import org.osgl.mvc.annotation.Before; //导入依赖的package包/类
@Before(priority = INTERCEPTOR_PRIORITY)
public void start() {
DSTransactionManager.start();
}
示例4: mockFormat
import org.osgl.mvc.annotation.Before; //导入依赖的package包/类
@Before(only = "greeting")
public void mockFormat(String fmt, ActionContext context) {
if ("json".equals(fmt)) {
context.accept(H.Format.JSON);
}
}
示例5: resetDefaultView
import org.osgl.mvc.annotation.Before; //导入依赖的package包/类
@Before
public static void resetDefaultView(AppConfig config) {
String templateId = RythmView.ID;
$.setField("defView", config, Act.viewManager().view(templateId));
}
示例6: beforeFooList
import org.osgl.mvc.annotation.Before; //导入依赖的package包/类
@SessionFree
@Before(only = "fooList")
public void beforeFooList(List<Foo> fooList) {
System.out.println(fooList);
}
示例7: validate
import org.osgl.mvc.annotation.Before; //导入依赖的package包/类
@Before
public void validate(int n) {
if (n < 0) {
throw new BadRequest();
}
}
示例8: intercepted
import org.osgl.mvc.annotation.Before; //导入依赖的package包/类
@Before(only = "gh152")
public Result intercepted() {
throw text("intercepted");
}
示例9: setupRenderArgs
import org.osgl.mvc.annotation.Before; //导入依赖的package包/类
@Before
public void setupRenderArgs() {
context.renderArg("who", "Act");
}
示例10: intercepted
import org.osgl.mvc.annotation.Before; //导入依赖的package包/类
@Before
public Result intercepted() {
throw text("intercepted");
}
示例11: before
import org.osgl.mvc.annotation.Before; //导入依赖的package包/类
@Before
public void before(App app) {
app.getInstance(String.class);
}
示例12: intercepted
import org.osgl.mvc.annotation.Before; //导入依赖的package包/类
@Global
@Before(only = "gh152Method")
public Result intercepted() {
throw text("intercepted");
}
示例13: someStupidLogic
import org.osgl.mvc.annotation.Before; //导入依赖的package包/类
@Before
public void someStupidLogic(App app) {
String empty = app.getInstance(String.class);
}
示例14: before
import org.osgl.mvc.annotation.Before; //导入依赖的package包/类
@Before
public void before(AppConfig config) {
CliOverHttpAuthority authority = config.cliOverHttpAuthority();
authority.authorize();
}
示例15: before
import org.osgl.mvc.annotation.Before; //导入依赖的package包/类
@Before
public static void before() {
trackStatic("FilterB", "before");
}