![JAR search and dependency download from the Maven repository](/logo.png)
edu.stanford.protege.webprotege.dispatch.ActionHandlerRegistry Maven / Gradle / Ivy
The newest version!
package edu.stanford.protege.webprotege.dispatch;
import edu.stanford.protege.webprotege.common.Request;
import edu.stanford.protege.webprotege.common.Response;
import javax.annotation.Nonnull;
import javax.annotation.concurrent.ThreadSafe;
/**
* Author: Matthew Horridge
* Stanford University
* Bio-Medical Informatics Research Group
* Date: 19/02/2013
*/
@ThreadSafe
public interface ActionHandlerRegistry {
/**
* Gets an action handler for the given action.
* @param action The action. Not {@code null}.
* @param The action type.
* @param The result type.
* @return An {@link ActionHandler} that can handle the specified action. Not {@code null}.
* @throws ActionHandlerNotFoundException if no {@link ActionHandler} was registered with this registry for the
* specified {@link Action}.
* @throws NullPointerException if {@code action} is {@code null}.
*/
@Nonnull
, R extends Response> ActionHandler getActionHandler(A action) throws ActionHandlerNotFoundException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy