1 package org.kuali.common.util.spring;
2
3 import org.kuali.common.util.execute.Executable;
4 import org.kuali.common.util.execute.PrintMessageExecutable;
5 import org.springframework.beans.factory.annotation.Value;
6 import org.springframework.context.annotation.Bean;
7 import org.springframework.context.annotation.Configuration;
8
9 @Configuration
10 public class PrintMessageConfig {
11
12 @Value("${print.message:NONE}")
13 String message;
14
15 @Bean
16 public Executable printMessageExecutable() {
17 PrintMessageExecutable pme = new PrintMessageExecutable();
18 pme.setMessage(message);
19 return pme;
20 }
21
22 }