我有这个 PhaseListner:
public class CheckAccessInterceptor implements PhaseListener {
private static final long serialVersionUID = -311454347719850720L;
private static Logger logger = Logger.getLogger(CheckAccessInterceptor.class);
@Override
public PhaseId getPhaseId() {
return PhaseId.ANY_PHASE;
}
public void beforePhase(PhaseEvent event) {
System.out.println("START PHASE " + event.getPhaseId());
}
public void afterPhase(PhaseEvent event) {
System.out.println("END PHASE " + event.getPhaseId());
}
}
是否可以从 PhaseEvent 对象中获取 ManagedBean 的名称和调用方法的名称?如何?
更新:
我在这里找到了解决方案,但看起来它不适用于 Ajax。所以我不知道该怎么办。