View Javadoc
1   /*
2    * Copyright 2014 James Pether Sörling
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *   http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   *	$Id$
17   *  $HeadURL$
18  */
19  package com.hack23.cia.web.impl.ui.application.views.user.goverment;
20  
21  import org.springframework.beans.factory.config.ConfigurableBeanFactory;
22  import org.springframework.context.ApplicationContext;
23  import org.springframework.context.annotation.Scope;
24  import org.springframework.stereotype.Service;
25  
26  import com.hack23.cia.web.impl.ui.application.views.common.pagemode.PageModeContentFactory;
27  import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews;
28  import com.hack23.cia.web.impl.ui.application.views.user.common.AbstractRankingView;
29  import com.vaadin.spring.annotation.SpringView;
30  
31  /**
32   * The Class MinistryRankingView.
33   */
34  @Service
35  @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
36  @SpringView(name = MinistryRankingView.NAME)
37  public final class MinistryRankingView extends AbstractRankingView {
38  
39  	/** The Constant serialVersionUID. */
40  	private static final long serialVersionUID = 1L;
41  
42  	/** The Constant NAME. */
43  	public static final String NAME = UserViews.MINISTRY_RANKING_VIEW_NAME;
44  
45  	/**
46  	 * Instantiates a new ministry ranking view.
47  	 *
48  	 * @param context
49  	 *            the context
50  	 */
51  	public MinistryRankingView(final ApplicationContext context) {
52  		super(context.getBeansOfType(PageModeContentFactory.class), NAME);
53  	}
54  
55  }