001    package org.kuali.common.deploy.spring;
002    
003    import org.kuali.common.deploy.DefaultDeployService;
004    import org.kuali.common.deploy.DeployContext;
005    import org.kuali.common.deploy.DeployService;
006    import org.kuali.common.deploy.appserver.ApplicationServer;
007    import org.kuali.common.deploy.appserver.spring.TomcatConfig;
008    import org.kuali.common.deploy.monitoring.Monitoring;
009    import org.kuali.common.deploy.monitoring.spring.AppDynamicsConfig;
010    import org.kuali.common.util.execute.Executable;
011    import org.springframework.beans.factory.annotation.Autowired;
012    import org.springframework.context.annotation.Bean;
013    import org.springframework.context.annotation.Configuration;
014    import org.springframework.context.annotation.Import;
015    
016    /**
017     * @deprecated
018     */
019    @Configuration
020    @Import({ DeploySqlControllerConfig.class, DefaultSysAdminConfig.class, AppDynamicsConfig.class, TomcatConfig.class, DefaultDeployContextConfig.class })
021    @Deprecated
022    public class DeployConfig {
023    
024            @Autowired
025            DeploySqlControllerConfig sqlControllerConfig;
026    
027            @Autowired
028            SysAdminConfig sysAdminConfig;
029    
030            @Autowired
031            Monitoring monitoring;
032    
033            @Autowired
034            ApplicationServer appServer;
035    
036            @Autowired
037            DeployContext context;
038    
039            @Bean(initMethod = "deploy")
040            public DeployService kdoDeployService() {
041                    Executable dbReset = sqlControllerConfig.sqlExecutable();
042                    Executable sysAdmin = sysAdminConfig.sysAdminExecutable();
043                    return new DefaultDeployService(context, sysAdmin, monitoring, appServer, dbReset);
044            }
045    
046    }