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 bootstrap dataset, which is the absolute minimum amount of tables and data required to run a
29 * standalone Rice server.
30 *
31 * @author Kuali Rice Team (rice.collab@kuali.org)
32 */
33 @Configuration
34 @Profile("client-bootstrap")
35 public class RiceClientBootstrapConfig implements MetaInfDataLocationProfileConfig, MetaInfDataTypeProfileConfig {
36
37 /**
38 * {@inheritDoc}
39 */
40 @Override
41 @Bean
42 public List<MetaInfDataLocation> getMetaInfDataLocations() {
43 return Lists.newArrayList(MetaInfDataLocation.CLIENT);
44 }
45
46 /**
47 * {@inheritDoc}
48 */
49 @Override
50 @Bean
51 public List<MetaInfDataType> getMetaInfDataTypes() {
52 return Lists.newArrayList(MetaInfDataType.BOOTSTRAP);
53 }
54
55 }