AdminPortalView.java

  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.admin.system;

  20. import org.springframework.beans.factory.config.ConfigurableBeanFactory;
  21. import org.springframework.context.ApplicationContext;
  22. import org.springframework.context.annotation.Scope;
  23. import org.springframework.stereotype.Service;

  24. import com.hack23.cia.web.impl.ui.application.views.admin.common.AbstractAdminView;
  25. import com.hack23.cia.web.impl.ui.application.views.common.pagemode.PageModeContentFactory;
  26. import com.hack23.cia.web.impl.ui.application.views.common.viewnames.AdminViews;
  27. import com.vaadin.spring.annotation.SpringView;

  28. /**
  29.  * The Class AdminDataSummaryView.
  30.  */
  31. @Service
  32. @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
  33. @SpringView(name = AdminPortalView.NAME)
  34. public final class AdminPortalView extends AbstractAdminView {

  35.     /** The Constant serialVersionUID. */
  36.     private static final long serialVersionUID = 1L;

  37.     /** The Constant NAME. */
  38.     public static final String NAME = AdminViews.ADMIN_PORTAL_VIEW_NAME;

  39.     /**
  40.      * Instantiates a new admin portal view.
  41.      *
  42.      * @param context
  43.      *            the context
  44.      */
  45.     public AdminPortalView(final ApplicationContext context) {
  46.         super(context.getBeansOfType(PageModeContentFactory.class), NAME);
  47.     }

  48. }