当前位置: 首页>>代码示例>>Java>>正文


Java LifecycleStage.EventHandling方法代码示例

本文整理汇总了Java中net.sourceforge.stripes.controller.LifecycleStage.EventHandling方法的典型用法代码示例。如果您正苦于以下问题:Java LifecycleStage.EventHandling方法的具体用法?Java LifecycleStage.EventHandling怎么用?Java LifecycleStage.EventHandling使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.sourceforge.stripes.controller.LifecycleStage的用法示例。


在下文中一共展示了LifecycleStage.EventHandling方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: list

import net.sourceforge.stripes.controller.LifecycleStage; //导入方法依赖的package包/类
@Before(stages = LifecycleStage.EventHandling)
public void list(){
    if (this.getVanencompetition()!=null){
        this.poules = Stripersist.getEntityManager().createQuery("FROM Poule where vanencompetition = :v").setParameter("v",this.getVanencompetition()).getResultList();
        if (this.type!=null || (this.poule!=null && this.poule.getType()!=null)){
            CompetitionType ct =null;
            if (this.type!=null){
                ct= CompetitionType.valueOf(this.type);
            }else{
                ct = this.poule.getType();
            }
            this.participantsWithoutPoule = Stripersist.getEntityManager()
                    .createQuery("FROM Participant where poule is null and vanencompetition = :v and type = :t order by karateka.belt,karateka.birthdate")
                    .setParameter("v", this.getVanencompetition()).setParameter("t", ct).getResultList();
        }else{
            this.participantsWithoutPoule = Stripersist.getEntityManager()
                    .createQuery("FROM Participant where poule is null and vanencompetition = :v order by karateka.belt,karateka.birthdate")
                    .setParameter("v", this.getVanencompetition()).getResultList();
        }
    }
}
 
开发者ID:rbraam,项目名称:vanenapp,代码行数:22,代码来源:PouleActionBean.java

示例2: getNextRunFromGameEngine

import net.sourceforge.stripes.controller.LifecycleStage; //导入方法依赖的package包/类
@Before(stages = { LifecycleStage.EventHandling })
public void getNextRunFromGameEngine() {
	Date nextRunDate = GameScheduler.INSTANCE.getNextRun();
	DateFormat dateTimeDf = DateFormat.getDateTimeInstance();
	setNextRun(dateTimeDf.format(nextRunDate));

	WinnerResult result = WinnerHistoryCalculation.INSTANCE.calc();
	threeDayWinner = result.getThreeDayWinner();
	threeDayWinnerTimeRange = result.getThreeDayWinnerTimeRange().toString();
	lastWinner = result.getLastWinner();
}
 
开发者ID:oglimmer,项目名称:cyc,代码行数:12,代码来源:PortalActionBean.java

示例3: addEventMessage

import net.sourceforge.stripes.controller.LifecycleStage; //导入方法依赖的package包/类
/**
 * Add a message in event handling stage.
 */
@Before(stages=LifecycleStage.EventHandling)
public void addEventMessage() {
    context.getMessages().add(new SimpleMessage("EventHandling"));
    context.getMessages("EventHandling").add(new SimpleMessage("EventHandling.EventHandling"));
}
 
开发者ID:StripesFramework,项目名称:stripes-stuff,代码行数:9,代码来源:MessagesActionBean.java

示例4: startup

import net.sourceforge.stripes.controller.LifecycleStage; //导入方法依赖的package包/类
@Before(stages=LifecycleStage.EventHandling)
public void startup() {
    if (result == null) result = 0;
}
 
开发者ID:StripesFramework,项目名称:stripes-stuff,代码行数:5,代码来源:NonSerializeActionBean.java


注:本文中的net.sourceforge.stripes.controller.LifecycleStage.EventHandling方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。