001    package edu.calpoly.records.spring;
002    
003    import org.kuali.common.util.execute.Executable;
004    import org.kuali.common.util.execute.PrintMessageExecutable;
005    import org.springframework.beans.factory.annotation.Value;
006    import org.springframework.context.annotation.Bean;
007    import org.springframework.context.annotation.Configuration;
008    
009    @Configuration
010    public class PrintMessageConfig {
011    
012            @Value("${print.message:NONE}")
013            String message;
014    
015            @Bean
016            public Executable printMessageExecutable() {
017                    PrintMessageExecutable pme = new PrintMessageExecutable();
018                    pme.setMessage(message);
019                    return pme;
020            }
021    
022    }