/******************************************************************************* * Copyright (c) 2012-2016 Codenvy, S.A. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Codenvy, S.A. - initial API and implementation *******************************************************************************/ package org.everrest.core.method; import org.everrest.core.ApplicationContext; import org.everrest.core.resource.GenericResourceMethod; /** * Invoke resource methods. * * @author andrew00x * @see GenericResourceMethod */ public interface MethodInvoker { /** * Invoke supplied method and return result of method invoking. * * @param resource * object that contains method * @param genericResourceMethod * See {@link GenericResourceMethod} * @param context * See {@link ApplicationContext} * @return result of method invoking */ Object invokeMethod(Object resource, GenericResourceMethod genericResourceMethod, ApplicationContext context); }