
com.github.fonimus.ssh.shell.commands.SshShellComponent Maven / Gradle / Ivy
The newest version!
package com.github.fonimus.ssh.shell.commands;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.shell.standard.ShellComponent;
import static com.github.fonimus.ssh.shell.SshShellProperties.SSH_SHELL_ENABLE;
/**
* Conditional {@link org.springframework.shell.standard.ShellComponent}
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@ShellComponent
@ConditionalOnProperty(name = SSH_SHELL_ENABLE, havingValue = "true", matchIfMissing = true)
public @interface SshShellComponent {
/**
* Used to indicate a suggestion for a logical name for the component.
*
* @return the suggested component name, if any
*/
String value() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy