1 /* 2 * Copyright (c) 2005-2007 Creative Sphere Limited. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * 10 * Creative Sphere - initial API and implementation 11 * 12 */ 13 package org.abstracthorizon.danube.mvc; 14 15 import org.abstracthorizon.danube.connection.Connection; 16 17 /** 18 * This interface defines view renderer. 19 * 20 * @author Daniel Sendula 21 */ 22 public interface View { 23 24 /** 25 * This metohd renders view on given connection based on supplied view name and model 26 * @param connection connection 27 * @param modelAndView view name and model map 28 */ 29 public void render(Connection connection, ModelAndView modelAndView); 30 }