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


Java PhaseId.ANY_PHASE属性代码示例

本文整理汇总了Java中javax.faces.event.PhaseId.ANY_PHASE属性的典型用法代码示例。如果您正苦于以下问题:Java PhaseId.ANY_PHASE属性的具体用法?Java PhaseId.ANY_PHASE怎么用?Java PhaseId.ANY_PHASE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在javax.faces.event.PhaseId的用法示例。


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

示例1: broadcastBeforeEvent

protected void broadcastBeforeEvent(PhaseEvent phaseEvent)
{
    //TODO discuss exception handling

    //fire to phase-observer methods
    this.phaseEvent.select(createAnnotationLiteral(phaseEvent.getPhaseId(), true)).fire(phaseEvent);
    this.beforeAnyPhaseEvent.fire(phaseEvent);

    //fire to ds-phase-listeners
    for (PhaseListener phaseListener : this.phaseListeners)
    {
        PhaseId targetPhase = phaseListener.getPhaseId();

        if (targetPhase == PhaseId.ANY_PHASE || targetPhase == phaseEvent.getPhaseId())
        {
            phaseListener.beforePhase(phaseEvent);
        }
    }
}
 
开发者ID:apache,项目名称:deltaspike,代码行数:19,代码来源:JsfRequestLifecycleBroadcaster.java

示例2: broadcastAfterEvent

protected void broadcastAfterEvent(PhaseEvent phaseEvent)
{
    //TODO discuss exception handling

    //fire to phase-observer methods
    this.phaseEvent.select(createAnnotationLiteral(phaseEvent.getPhaseId(), false)).fire(phaseEvent);
    this.afterAnyPhaseEvent.fire(phaseEvent);

    //fire to ds-phase-listeners
    //call the listeners in reverse-order (like jsf)
    ListIterator<PhaseListener> phaseListenerIterator = this.phaseListeners.listIterator(phaseListeners.size());

    while (phaseListenerIterator.hasPrevious())
    {
        PhaseListener phaseListener = phaseListenerIterator.previous();
        PhaseId targetPhase = phaseListener.getPhaseId();

        if (targetPhase == PhaseId.ANY_PHASE || targetPhase == phaseEvent.getPhaseId())
        {
            phaseListener.afterPhase(phaseEvent);
        }
    }
}
 
开发者ID:apache,项目名称:deltaspike,代码行数:23,代码来源:JsfRequestLifecycleBroadcaster.java

示例3: getPhaseId

@Override
public PhaseId getPhaseId() {
    return PhaseId.ANY_PHASE;
}
 
开发者ID:hantsy,项目名称:javaee8-jsf-sample,代码行数:4,代码来源:RequestLoggingPhaseListener.java

示例4: getPhaseId

public PhaseId getPhaseId() {
    return PhaseId.ANY_PHASE;
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:3,代码来源:PhaseLoggerListener.java

示例5: getPhaseId

public PhaseId getPhaseId()
{
  return PhaseId.ANY_PHASE;
}
 
开发者ID:apache,项目名称:myfaces-trinidad,代码行数:4,代码来源:TrinidadPhaseListener.java

示例6: getPhaseId

@Override
public PhaseId getPhaseId() {
	return PhaseId.ANY_PHASE;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:4,代码来源:DelegatingPhaseListenerMulticaster.java

示例7: getPhaseId

public PhaseId getPhaseId()
{
    return PhaseId.ANY_PHASE;
}
 
开发者ID:AgarwalNeha1,项目名称:gluu,代码行数:4,代码来源:MultiPageMessagesSupport.java

示例8: LogPhaseListener

public LogPhaseListener() {
    super(PhaseId.ANY_PHASE);
}
 
开发者ID:ddRPB,项目名称:rpb,代码行数:3,代码来源:LogPhaseListener.java

示例9: getPhaseId

public PhaseId getPhaseId() {
	return PhaseId.ANY_PHASE;
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:3,代码来源:FacesPhaseListener.java

示例10: getPhaseId

/**
 * @see javax.faces.event.PhaseListener#getPhaseId()
 */
public PhaseId getPhaseId()
{
   return PhaseId.ANY_PHASE;
}
 
开发者ID:Alfresco,项目名称:community-edition-old,代码行数:7,代码来源:DebugPhaseListener.java

示例11: getPhaseId

public PhaseId getPhaseId()
{	return PhaseId.ANY_PHASE;
}
 
开发者ID:dayse,项目名称:gesplan,代码行数:3,代码来源:PhaseListenerCustomizado.java

示例12: getPhaseId

@Override
public PhaseId getPhaseId() {
   return PhaseId.ANY_PHASE;
}
 
开发者ID:hantsy,项目名称:ee7-sandbox,代码行数:4,代码来源:DebugPhaseListener.java

示例13: getPhaseId

@Override
public PhaseId getPhaseId()
{
    return PhaseId.ANY_PHASE;
}
 
开发者ID:roguexz,项目名称:gae-java-template,代码行数:5,代码来源:SessionSerializationListener.java

示例14: getPhaseId

/**
 * Return the identifier of the request processing phase during which this
 * listener is interested in processing PhaseEvent events.
 */
public PhaseId getPhaseId() {
	return PhaseId.ANY_PHASE;
}
 
开发者ID:hantsy,项目名称:javaee8-jsf-sample,代码行数:7,代码来源:MessageHandler.java

示例15: getPhaseId

/**
 * Gets the Faces PhaseId that this listener will listen for.
 * @return the PhaseId - PhaseId.ANY_PHASE
 */
public PhaseId getPhaseId() {
  return PhaseId.ANY_PHASE;
}
 
开发者ID:GeoinformationSystems,项目名称:GeoprocessingAppstore,代码行数:7,代码来源:PrimaryPhaseListener.java


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