View Javadoc
1   package org.kuali.common.jute.project;
2   
3   import static com.google.common.collect.Lists.newArrayList;
4   
5   import java.util.List;
6   
7   import javax.inject.Provider;
8   
9   import org.kuali.common.jute.enc.openssl.OpenSSLModule;
10  import org.kuali.common.jute.env.EnvModule;
11  import org.kuali.common.jute.json.jackson.JacksonModule;
12  import org.kuali.common.jute.process.ProcessModule;
13  import org.kuali.common.jute.runtime.RuntimeModule;
14  import org.kuali.common.jute.system.SystemModule;
15  
16  import com.google.common.collect.ImmutableList;
17  import com.google.inject.AbstractModule;
18  
19  public final class BasicModuleProvider implements Provider<Iterable<AbstractModule>> {
20  
21      @Override
22      public Iterable<AbstractModule> get() {
23          List<AbstractModule> list = newArrayList();
24          list.add(new SystemModule());
25          list.add(new EnvModule());
26          list.add(new RuntimeModule());
27          list.add(new ProcessModule());
28          list.add(new JacksonModule());
29          list.add(new OpenSSLModule());
30          return ImmutableList.copyOf(list);
31      }
32  
33  }