1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.common.util.spring.profile;
17
18 import org.kuali.common.util.execute.Executable;
19 import org.kuali.common.util.execute.PrintMessageExecutable;
20 import org.springframework.beans.factory.annotation.Autowired;
21 import org.springframework.context.annotation.Bean;
22 import org.springframework.context.annotation.Configuration;
23 import org.springframework.context.annotation.Import;
24
25 @Configuration
26 @Import(DatabaseConfig.class)
27 public class ShowDatabaseConfig {
28
29 @Autowired
30 DatabaseConfig databaseConfig;
31
32 @Bean
33 public Executable showDatabaseConfigExecutable() {
34 Database database = databaseConfig.databaseConfigDatabase();
35 PrintMessageExecutable exec = new PrintMessageExecutable();
36 exec.setMessage(database.getVendor());
37 return exec;
38 }
39 }