View Javadoc
1   /**
2    * Copyright 2005-2015 The Kuali Foundation
3    *
4    * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
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  package org.kuali.rice.db.config.profile;
17  
18  import com.google.common.collect.Lists;
19  import org.kuali.common.util.metainf.spring.MetaInfDataLocation;
20  import org.kuali.common.util.metainf.spring.MetaInfDataType;
21  import org.springframework.context.annotation.Bean;
22  import org.springframework.context.annotation.Configuration;
23  import org.springframework.context.annotation.Profile;
24  
25  import java.util.List;
26  
27  /**
28   * Defines the Rice master dataset, which includes all data.
29   *
30   * @author Kuali Rice Team (rice.collab@kuali.org)
31   */
32  @Configuration
33  @Profile("master")
34  public class RiceMasterConfig implements MetaInfDataLocationProfileConfig, MetaInfDataTypeProfileConfig {
35  
36      /**
37       * {@inheritDoc}
38       */
39      @Override
40      @Bean
41      public List<MetaInfDataLocation> getMetaInfDataLocations() {
42          return Lists.newArrayList(MetaInfDataLocation.CLIENT, MetaInfDataLocation.SERVER);
43      }
44  
45      /**
46       * {@inheritDoc}
47       */
48      @Override
49      @Bean
50      public List<MetaInfDataType> getMetaInfDataTypes() {
51          return Lists.newArrayList(MetaInfDataType.BOOTSTRAP, MetaInfDataType.DEMO, MetaInfDataType.TEST);
52      }
53  
54  }