1 /*
2 * Copyright (c) 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.pasulj.PasuljInfo;
16
17 /**
18 * Bean info for {@link ModelAndView} class.
19 *
20 * @author Daniel Sendula
21 *
22 */
23 public class ModelAndViewBeanInfo extends PasuljInfo {
24
25 /**
26 * Constructor
27 */
28 public ModelAndViewBeanInfo() {
29 this(ModelAndView.class);
30 }
31
32 /**
33 * Constructor
34 * @param cls class
35 */
36 public ModelAndViewBeanInfo(Class<?> cls) {
37 super(cls);
38 }
39
40 /**
41 * Init method
42 */
43 public void init() {
44 addProperty("view", "Name of the view");
45 addProperty("model", "Map that represents the model");
46 }
47
48 }