com.ulisesbocchio.jasyptspringboot.annotation.ConditionalOnMissingBean Maven / Gradle / Ivy
package com.ulisesbocchio.jasyptspringboot.annotation;
import com.ulisesbocchio.jasyptspringboot.condition.OnMissingBeanCondition;
import org.springframework.context.annotation.Conditional;
import java.lang.annotation.*;
/**
* Similar to Spring's condition but supports placeholders.
* It only works with explicit {@link org.springframework.context.annotation.Bean} name attribute specified.
*
* @author Ulises Bocchio
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Conditional(OnMissingBeanCondition.class)
public @interface ConditionalOnMissingBean {
}