本文整理汇总了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;
}