本文整理匯總了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);
}
}
}
示例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);
}
}
}
示例3: getPhaseId
@Override
public PhaseId getPhaseId() {
return PhaseId.ANY_PHASE;
}
示例4: getPhaseId
public PhaseId getPhaseId() {
return PhaseId.ANY_PHASE;
}
示例5: getPhaseId
public PhaseId getPhaseId()
{
return PhaseId.ANY_PHASE;
}
示例6: getPhaseId
@Override
public PhaseId getPhaseId() {
return PhaseId.ANY_PHASE;
}
示例7: getPhaseId
public PhaseId getPhaseId()
{
return PhaseId.ANY_PHASE;
}
示例8: LogPhaseListener
public LogPhaseListener() {
super(PhaseId.ANY_PHASE);
}
示例9: getPhaseId
public PhaseId getPhaseId() {
return PhaseId.ANY_PHASE;
}
示例10: getPhaseId
/**
* @see javax.faces.event.PhaseListener#getPhaseId()
*/
public PhaseId getPhaseId()
{
return PhaseId.ANY_PHASE;
}
示例11: getPhaseId
public PhaseId getPhaseId()
{ return PhaseId.ANY_PHASE;
}
示例12: getPhaseId
@Override
public PhaseId getPhaseId() {
return PhaseId.ANY_PHASE;
}
示例13: getPhaseId
@Override
public PhaseId getPhaseId()
{
return PhaseId.ANY_PHASE;
}
示例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;
}
示例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;
}