當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。