All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mvnsearch.boot.xtermjs.XtermjsAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
package org.mvnsearch.boot.xtermjs;

import org.mvnsearch.boot.xtermjs.commands.*;
import org.mvnsearch.boot.xtermjs.commands.sql.DatabaseCommands;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.shell.ParameterResolver;
import org.springframework.shell.standard.commands.Help;

import java.util.List;

/**
 * Xterm.js auto configuration
 *
 * @author linux_china
 */
@Configuration
@Order(Ordered.LOWEST_PRECEDENCE)
public class XtermjsAutoConfiguration {

	private Logger log = LoggerFactory.getLogger(XtermjsAutoConfiguration.class);

	@Bean
	@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
	public Help help(List parameterResolvers) {
		return new Help(parameterResolvers);
	}

	@Bean
	public SystemCommands systemCommands() {
		return new SystemCommands();
	}

	@Bean
	public JvmCommands jvmCommands() {
		return new JvmCommands();
	}

	@Bean
	public SpringCommands springBootStandardCommands() {
		return new SpringCommands();
	}

	@Bean
	public CurlCommand curlCommand() {
		return new CurlCommand();
	}

	@Bean
	public SpelCommand spelCommand() {
		return new SpelCommand();
	}

	@Bean
	public ExportCommand exportCommand() {
		return new ExportCommand();
	}

	@Bean
	@ConditionalOnClass(RedisTemplate.class)
	public RedisCommands redisCommands() {
		return new RedisCommands();
	}

	@Bean
	@ConditionalOnClass(JdbcTemplate.class)
	public DatabaseCommands databaseCommands() {
		return new DatabaseCommands();
	}

	@Bean
	public XtermRSocketController xtermRSocketController() {
		return new XtermRSocketController();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy