blob: 36928701a4c1cb551b563b6f0f98b015ba734b0c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008, 2010 VMware Inc.
* 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:
* VMware Inc. - initial contribution
*******************************************************************************/
package org.eclipse.virgo.samples.configuration.properties.web;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import org.eclipse.virgo.samples.configuration.properties.core.PropertiesService;
/**
* <p>
* TODO Document AppController
* </p>
*
* <strong>Concurrent Semantics</strong><br />
*
* TODO Document concurrent semantics of AppController
*
*/
@Controller
public final class PropertiesController {
@Autowired
private PropertiesService propertiesService;
/**
* Custom handler for displaying a list of properties.
*/
@RequestMapping("/overview")
public ModelAndView information() {
return new ModelAndView("properties").addObject("properties", this.propertiesService.getProperties());
}
}