1 package org.kuali.student.lum.common.client.configuration;
2
3 import org.kuali.student.common.ui.client.configurable.mvc.Configurer;
4
5 import java.util.ArrayList;
6 import java.util.HashMap;
7
8
9
10
11
12
13
14
15
16
17 public class ConfigurationManager {
18
19 private ArrayList<Configuration> configurations = new ArrayList<Configuration>();
20
21 private Configurer configurer;
22
23 public ConfigurationManager(Configurer configurer) {
24 this.configurer = configurer;
25 }
26
27 public void registerConfiguration(Configuration configuration) {
28 configurations.add(configuration);
29 setConfigurerOn(configuration);
30 }
31
32 public ArrayList<Configuration> getConfigurations() {
33 return configurations;
34 }
35
36 private void setConfigurerOn(Configuration configuration) {
37 configuration.setConfigurer(configurer);
38 }
39 }