All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jakarta.faces.event.SystemEventListener Maven / Gradle / Ivy

/*
 * Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0, which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * This Source Code may also be made available under the following Secondary
 * Licenses when the conditions for such availability set forth in the
 * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
 * version 2 with the GNU Classpath Exception, which is available at
 * https://www.gnu.org/software/classpath/license.html.
 *
 * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
 */

package jakarta.faces.event;

/**
 * 

* By implementing this class, an object indicates that it is a listener for one or more kinds of {@link SystemEvent}s. * The exact type of event that will cause the implementing class's {@link #processEvent} method to be called is * indicated by the facesEventClass argument passed when the listener is installed using * {@link jakarta.faces.application.Application#subscribeToEvent}. *

* * @since 2.0 */ public interface SystemEventListener extends FacesListener { /** *

* When called, the listener can assume that any guarantees given in the javadoc for the specific {@link SystemEvent} * subclass are true. *

* * @param event the SystemEvent instance that is being processed. * * @throws AbortProcessingException if lifecycle processing should cease for this request. */ void processEvent(SystemEvent event) throws AbortProcessingException; /** *

* This method must return true if and only if this listener instance is interested in receiving events * from the instance referenced by the source parameter. *

* * @param source the source that is inquiring about the appropriateness of sending an event to this listener instance. * * @return the value as specified above */ boolean isListenerForSource(Object source); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy