public boolean isListenerForSource(Object source) { if (wrapped != null) { return wrapped.isListenerForSource(source); } return false; }
public void processEvent(SystemEvent event) throws AbortProcessingException { if (wrapped != null) { wrapped.processEvent(event); } } }
public void processEvent(final SystemEvent event) throws AbortProcessingException { for (SystemEventListener l : getEventListeners()) { if (l.isListenerForSource(event.getSource())) { l.processEvent(event); } } }
@Override public void processEvent(final SystemEvent event) throws AbortProcessingException { if (event instanceof PreDestroyApplicationEvent && !isBeanManagerAvailable()) { log.info("BeanManager no longer available; Cannot notify CDI-managed listeners of " + PreDestroyApplicationEvent.class.getSimpleName()); return; } for (SystemEventListener l : getEventListeners()) { if (l.isListenerForSource(event.getSource())) { l.processEvent(event); } } }
public boolean isListenerForSource(Object component) { if (wrapped instanceof SystemEventListener) { return ((SystemEventListener) wrapped).isListenerForSource(component); } else { return instanceClass.isAssignableFrom(component.getClass()); } }
if (listener.isListenerForSource(this)) listener.processEvent(event);
public void processListener(FacesListener listener) { ((SystemEventListener) listener).processEvent(this); }
public boolean isListenerForSource(Object component) { if (wrapped instanceof SystemEventListener) { return ((SystemEventListener) wrapped).isListenerForSource(component); } else { return instanceClass.isAssignableFrom(component.getClass()); } }
/** * <p>Broadcast this event instance to the specified * {@link FacesListener}, by whatever mechanism is appropriate. Typically, * this will be accomplished by calling an event processing method, and * passing this instance as a parameter.</p> * * @param listener {@link FacesListener} to send this {@link FacesEvent} to * * @throws AbortProcessingException Signal the JavaServer Faces * implementation that no further processing on the current event * should be performed */ public void processListener(FacesListener listener) { ((SystemEventListener) listener).processEvent(this); } }
/** * Is this a listener for the given component. * * @param component the component. * @return <code>true</code> if it is a listener, <code>false</code> otherwise. */ @Override public boolean isListenerForSource(Object component) { if (wrapped instanceof SystemEventListener) { return ((SystemEventListener) wrapped).isListenerForSource(component); } else { return instanceClass.isAssignableFrom(component.getClass()); } }
/** * <p>Broadcast this event instance to the specified * {@link FacesListener}, by whatever mechanism is appropriate. Typically, * this will be accomplished by calling an event processing method, and * passing this instance as a paramter.</p> * * @param listener {@link FacesListener} to send this {@link FacesEvent} to * * @throws AbortProcessingException Signal the JavaServer Faces * implementation that no further processing on the current event * should be performed */ public void processListener(FacesListener listener) { ((SystemEventListener) listener).processEvent(this); } }
/** * Is this a listener for the given component. * * @param component * the component. * @return <code>true</code> if it is a listener, <code>false</code> otherwise. */ @Override public boolean isListenerForSource(Object component) { if (wrapped instanceof SystemEventListener) { return ((SystemEventListener) wrapped).isListenerForSource(component); } return instanceClass.isAssignableFrom(component.getClass()); }
/** * <p>Broadcast this event instance to the specified * {@link FacesListener}, by whatever mechanism is appropriate. Typically, * this will be accomplished by calling an event processing method, and * passing this instance as a paramter.</p> * * @param listener {@link FacesListener} to send this {@link FacesEvent} to * * @throws AbortProcessingException Signal the JavaServer Faces * implementation that no further processing on the current event * should be performed */ public void processListener(FacesListener listener) { ((SystemEventListener) listener).processEvent(this); } }
/** * Is this a listener for the given component. * * @param component * the component. * @return <code>true</code> if it is a listener, <code>false</code> otherwise. */ @Override public boolean isListenerForSource(Object component) { if (wrapped instanceof SystemEventListener) { return ((SystemEventListener) wrapped).isListenerForSource(component); } return instanceClass.isAssignableFrom(component.getClass()); }
/** * <p>Broadcast this event instance to the specified * {@link FacesListener}, by whatever mechanism is appropriate. Typically, * this will be accomplished by calling an event processing method, and * passing this instance as a parameter.</p> * * @param listener {@link FacesListener} to send this {@link FacesEvent} to * * @throws AbortProcessingException Signal the JavaServer Faces * implementation that no further processing on the current event * should be performed */ public void processListener(FacesListener listener) { ((SystemEventListener) listener).processEvent(this); } }
/** * Is this a listener for the given component. * * @param component the component. * @return <code>true</code> if it is a listener, <code>false</code> otherwise. */ @Override public boolean isListenerForSource(Object component) { if (wrapped instanceof SystemEventListener) { return ((SystemEventListener) wrapped).isListenerForSource(component); } else { return instanceClass.isAssignableFrom(component.getClass()); } }
/** * <p>Broadcast this event instance to the specified * {@link FacesListener}, by whatever mechanism is appropriate. Typically, * this will be accomplished by calling an event processing method, and * passing this instance as a parameter.</p> * * @param listener {@link FacesListener} to send this {@link FacesEvent} to * * @throws AbortProcessingException Signal the JavaServer Faces * implementation that no further processing on the current event * should be performed */ public void processListener(FacesListener listener) { ((SystemEventListener) listener).processEvent(this); } }
/** * Is this a listener for the given component. * * @param component * the component. * @return <code>true</code> if it is a listener, <code>false</code> otherwise. */ @Override public boolean isListenerForSource(Object component) { if (wrapped instanceof SystemEventListener) { return ((SystemEventListener) wrapped).isListenerForSource(component); } return instanceClass.isAssignableFrom(component.getClass()); }
/** * <p>Broadcast this event instance to the specified * {@link FacesListener}, by whatever mechanism is appropriate. Typically, * this will be accomplished by calling an event processing method, and * passing this instance as a parameter.</p> * * @param listener {@link FacesListener} to send this {@link FacesEvent} to * * @throws AbortProcessingException Signal the JavaServer Faces * implementation that no further processing on the current event * should be performed */ public void processListener(FacesListener listener) { ((SystemEventListener) listener).processEvent(this); } }
/** * Is this a listener for the given component. * * @param component * the component. * @return <code>true</code> if it is a listener, <code>false</code> otherwise. */ @Override public boolean isListenerForSource(Object component) { if (wrapped instanceof SystemEventListener) { return ((SystemEventListener) wrapped).isListenerForSource(component); } return instanceClass.isAssignableFrom(component.getClass()); }