@Override public boolean isAppropriateListener(FacesListener listener) { return listener instanceof ComponentSystemEventListener || super.isAppropriateListener(listener); }
/** * <p class="changed_added_2_2">Return <code>true</code> if the argument * {@link FacesListener} is an instance of the appropriate listener class that this event * supports. The default implementation returns true if the listener * is a {@link ComponentSystemEventListener} or if <code>super.isAppropriateListener()</code> * returns true.</p> * * @param listener {@link FacesListener} to evaluate * @since 2.2 */ @Override public boolean isAppropriateListener(FacesListener listener) { boolean result = (listener instanceof ComponentSystemEventListener); if (!result) { result = super.isAppropriateListener(listener); } return result; }
/** * <p class="changed_added_2_2">Return <code>true</code> if the argument * {@link FacesListener} is an instance of the appropriate listener class that this event * supports. The default implementation returns true if the listener * is a {@link ComponentSystemEventListener} or if <code>super.isAppropriateListener()</code> * returns true.</p> * * @param listener {@link FacesListener} to evaluate * @since 2.2 */ @Override public boolean isAppropriateListener(FacesListener listener) { boolean result = (listener instanceof ComponentSystemEventListener); if (!result) { result = super.isAppropriateListener(listener); } return result; }
/** * <p class="changed_added_2_2">Return <code>true</code> if the argument * {@link FacesListener} is an instance of the appropriate listener class that this event * supports. The default implementation returns true if the listener * is a {@link ComponentSystemEventListener} or if <code>super.isAppropriateListener()</code> * returns true.</p> * * @param listener {@link FacesListener} to evaluate * @since 2.2 */ @Override public boolean isAppropriateListener(FacesListener listener) { boolean result = (listener instanceof ComponentSystemEventListener); if (!result) { result = super.isAppropriateListener(listener); } return result; }
/** * <p class="changed_added_2_2">Return <code>true</code> if the argument * {@link FacesListener} is an instance of the appropriate listener class that this event * supports. The default implementation returns true if the listener * is a {@link ComponentSystemEventListener} or if <code>super.isAppropriateListener()</code> * returns true.</p> * * @param listener {@link FacesListener} to evaluate * @since 2.2 */ @Override public boolean isAppropriateListener(FacesListener listener) { boolean result = (listener instanceof ComponentSystemEventListener); if (!result) { result = super.isAppropriateListener(listener); } return result; }
/** * <p class="changed_added_2_2">Return <code>true</code> if the argument * {@link FacesListener} is an instance of the appropriate listener class that this event * supports. The default implementation returns true if the listener * is a {@link ComponentSystemEventListener} or if <code>super.isAppropriateListener()</code> * returns true.</p> * * @param listener {@link FacesListener} to evaluate * @since 2.2 */ @Override public boolean isAppropriateListener(FacesListener listener) { boolean result = (listener instanceof ComponentSystemEventListener); if (!result) { result = super.isAppropriateListener(listener); } return result; }
/** * <p class="changed_added_2_2">Return <code>true</code> if the argument * {@link FacesListener} is an instance of the appropriate listener class that this event * supports. The default implementation returns true if the listener * is a {@link ComponentSystemEventListener} or if <code>super.isAppropriateListener()</code> * returns true.</p> * * @param listener {@link FacesListener} to evaluate * @since 2.2 */ @Override public boolean isAppropriateListener(FacesListener listener) { boolean result = (listener instanceof ComponentSystemEventListener); if (!result) { result = super.isAppropriateListener(listener); } return result; }
/** * <p class="changed_added_2_2">Return <code>true</code> if the argument * {@link FacesListener} is an instance of the appropriate listener class that this event * supports. The default implementation returns true if the listener * is a {@link ComponentSystemEventListener} or if <code>super.isAppropriateListener()</code> * returns true.</p> * * @param listener {@link FacesListener} to evaluate * @since 2.2 */ @Override public boolean isAppropriateListener(FacesListener listener) { boolean result = (listener instanceof ComponentSystemEventListener); if (!result) { result = super.isAppropriateListener(listener); } return result; }
/** * <p class="changed_added_2_2">Return <code>true</code> if the argument * {@link FacesListener} is an instance of the appropriate listener class that this event * supports. The default implementation returns true if the listener * is a {@link ComponentSystemEventListener} or if <code>super.isAppropriateListener()</code> * returns true.</p> * * @param listener {@link FacesListener} to evaluate * @since 2.2 */ @Override public boolean isAppropriateListener(FacesListener listener) { boolean result = (listener instanceof ComponentSystemEventListener); if (!result) { result = super.isAppropriateListener(listener); } return result; }
/** * Iterate through and invoke the listeners. If the passed event was * <code>null</code>, create the event, and return it. */ private SystemEvent processListeners(Collection<SystemEventListener> listeners, SystemEvent event, Object source, EventInfo eventInfo) { if (listeners != null && !listeners.isEmpty()) { ArrayList<SystemEventListener> list = new ArrayList<SystemEventListener>(listeners); for (SystemEventListener curListener : list) { if (curListener != null && curListener.isListenerForSource(source)) { if (event == null) { event = eventInfo.createSystemEvent(source); } assert (event != null); if (event.isAppropriateListener(curListener)) { event.processListener(curListener); } } } } return event; }
/** * Iterate through and invoke the listeners. If the passed event was <code>null</code>, create * the event, and return it. */ private SystemEvent processListeners(Collection<SystemEventListener> listeners, SystemEvent event, Object source, EventInfo eventInfo) { if (listeners != null && !listeners.isEmpty()) { ArrayList<SystemEventListener> list = new ArrayList<>(listeners); for (SystemEventListener curListener : list) { if (curListener != null && curListener.isListenerForSource(source)) { if (event == null) { event = eventInfo.createSystemEvent(source); } assert event != null; if (event.isAppropriateListener(curListener)) { event.processListener(curListener); } } } } return event; }
/** * Iterate through and invoke the listeners. If the passed event was <code>null</code>, create * the event, and return it. */ private SystemEvent processListeners(Collection<SystemEventListener> listeners, SystemEvent event, Object source, EventInfo eventInfo) { if (listeners != null && !listeners.isEmpty()) { ArrayList<SystemEventListener> list = new ArrayList<>(listeners); for (SystemEventListener curListener : list) { if (curListener != null && curListener.isListenerForSource(source)) { if (event == null) { event = eventInfo.createSystemEvent(source); } assert event != null; if (event.isAppropriateListener(curListener)) { event.processListener(curListener); } } } } return event; }
/** * Iterate through and invoke the listeners. If the passed event was <code>null</code>, create * the event, and return it. */ private SystemEvent processListeners(Collection<SystemEventListener> listeners, SystemEvent event, Object source, EventInfo eventInfo) { if (listeners != null && !listeners.isEmpty()) { ArrayList<SystemEventListener> list = new ArrayList<>(listeners); for (SystemEventListener curListener : list) { if (curListener != null && curListener.isListenerForSource(source)) { if (event == null) { event = eventInfo.createSystemEvent(source); } assert event != null; if (event.isAppropriateListener(curListener)) { event.processListener(curListener); } } } } return event; }
if (event.isAppropriateListener(listener))
if (!processedListeners.containsKey(curListener) && event.isAppropriateListener(curListener)) { processedSomeEvents = true; event.processListener(curListener);
&& event.isAppropriateListener(curListener)) { processedSomeEvents = true; event.processListener(curListener);
private static SystemEvent _traverseListenerList(List<? extends SystemEventListener> listeners, Class<? extends SystemEvent> systemEventClass, Object source, SystemEvent event) { if (listeners != null && !listeners.isEmpty()) { for (SystemEventListener listener : listeners) { // Call SystemEventListener.isListenerForSource(java.lang.Object), passing the source argument. // If this returns false, take no action on the listener. if (listener.isListenerForSource(source)) { // Otherwise, if the event to be passed to the listener instances has not yet been constructed, // construct the event, passing source as the argument to the one-argument constructor that takes // an Object. This same event instance must be passed to all listener instances. event = _createEvent(systemEventClass, source, event); // Call SystemEvent.isAppropriateListener(javax.faces.event.FacesListener), passing the listener // instance as the argument. If this returns false, take no action on the listener. if (event.isAppropriateListener(listener)) { // Call SystemEvent.processListener(javax.faces.event.FacesListener), passing the listener // instance. event.processListener(listener); } } } } return event; }
if (!processedListeners.containsKey(curListener) && event.isAppropriateListener(curListener)) { processedSomeEvents = true; event.processListener(curListener);
private static SystemEvent _traverseListenerList(List<? extends SystemEventListener> listeners, Class<? extends SystemEvent> systemEventClass, Object source, SystemEvent event) { if (listeners != null && !listeners.isEmpty()) { for (SystemEventListener listener : listeners) { // Call SystemEventListener.isListenerForSource(java.lang.Object), passing the source argument. // If this returns false, take no action on the listener. if (listener.isListenerForSource(source)) { // Otherwise, if the event to be passed to the listener instances has not yet been constructed, // construct the event, passing source as the argument to the one-argument constructor that takes // an Object. This same event instance must be passed to all listener instances. event = _createEvent(systemEventClass, source, event); // Call SystemEvent.isAppropriateListener(javax.faces.event.FacesListener), passing the listener // instance as the argument. If this returns false, take no action on the listener. if (event.isAppropriateListener(listener)) { // Call SystemEvent.processListener(javax.faces.event.FacesListener), passing the listener // instance. event.processListener(listener); } } } } return event; }
private static SystemEvent _traverseListenerList( List<? extends SystemEventListener> listeners, Class<? extends SystemEvent> systemEventClass, Object source, SystemEvent event) { if (listeners != null && !listeners.isEmpty()) { for (SystemEventListener listener : listeners) { // Call SystemEventListener.isListenerForSource(java.lang.Object), passing the source argument. // If this returns false, take no action on the listener. if (listener.isListenerForSource(source)) { // Otherwise, if the event to be passed to the listener instances has not yet been constructed, // construct the event, passing source as the argument to the one-argument constructor that takes // an Object. This same event instance must be passed to all listener instances. event = _createEvent(systemEventClass, source, event); // Call SystemEvent.isAppropriateListener(javax.faces.event.FacesListener), passing the listener // instance as the argument. If this returns false, take no action on the listener. if (event.isAppropriateListener(listener)) { // Call SystemEvent.processListener(javax.faces.event.FacesListener), passing the listener // instance. event.processListener(listener); } } } } return event; }