Search in sources :

Example 36 with ConditionalOnMissingBean

use of org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean in project camel by apache.

the class CwComponentAutoConfiguration method configureCwComponent.

@Lazy
@Bean(name = "aws-cw-component")
@ConditionalOnClass(CamelContext.class)
@ConditionalOnMissingBean(CwComponent.class)
public CwComponent configureCwComponent(CamelContext camelContext) throws Exception {
    CwComponent component = new CwComponent();
    component.setCamelContext(camelContext);
    return component;
}
Also used : CwComponent(org.apache.camel.component.aws.cw.CwComponent) Lazy(org.springframework.context.annotation.Lazy) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnClass(org.springframework.boot.autoconfigure.condition.ConditionalOnClass) ConditionalOnBean(org.springframework.boot.autoconfigure.condition.ConditionalOnBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 37 with ConditionalOnMissingBean

use of org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean in project camel by apache.

the class DdbComponentAutoConfiguration method configureDdbComponent.

@Lazy
@Bean(name = "aws-ddb-component")
@ConditionalOnClass(CamelContext.class)
@ConditionalOnMissingBean(DdbComponent.class)
public DdbComponent configureDdbComponent(CamelContext camelContext) throws Exception {
    DdbComponent component = new DdbComponent();
    component.setCamelContext(camelContext);
    return component;
}
Also used : DdbComponent(org.apache.camel.component.aws.ddb.DdbComponent) Lazy(org.springframework.context.annotation.Lazy) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnClass(org.springframework.boot.autoconfigure.condition.ConditionalOnClass) ConditionalOnBean(org.springframework.boot.autoconfigure.condition.ConditionalOnBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 38 with ConditionalOnMissingBean

use of org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean in project camel by apache.

the class DdbStreamComponentAutoConfiguration method configureDdbStreamComponent.

@Lazy
@Bean(name = "aws-ddbstream-component")
@ConditionalOnClass(CamelContext.class)
@ConditionalOnMissingBean(DdbStreamComponent.class)
public DdbStreamComponent configureDdbStreamComponent(CamelContext camelContext) throws Exception {
    DdbStreamComponent component = new DdbStreamComponent();
    component.setCamelContext(camelContext);
    return component;
}
Also used : DdbStreamComponent(org.apache.camel.component.aws.ddbstream.DdbStreamComponent) Lazy(org.springframework.context.annotation.Lazy) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnClass(org.springframework.boot.autoconfigure.condition.ConditionalOnClass) ConditionalOnBean(org.springframework.boot.autoconfigure.condition.ConditionalOnBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 39 with ConditionalOnMissingBean

use of org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean in project camel by apache.

the class EC2ComponentAutoConfiguration method configureEC2Component.

@Lazy
@Bean(name = "aws-ec2-component")
@ConditionalOnClass(CamelContext.class)
@ConditionalOnMissingBean(EC2Component.class)
public EC2Component configureEC2Component(CamelContext camelContext) throws Exception {
    EC2Component component = new EC2Component();
    component.setCamelContext(camelContext);
    return component;
}
Also used : EC2Component(org.apache.camel.component.aws.ec2.EC2Component) Lazy(org.springframework.context.annotation.Lazy) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnClass(org.springframework.boot.autoconfigure.condition.ConditionalOnClass) ConditionalOnBean(org.springframework.boot.autoconfigure.condition.ConditionalOnBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Example 40 with ConditionalOnMissingBean

use of org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean in project camel by apache.

the class KinesisFirehoseComponentAutoConfiguration method configureKinesisFirehoseComponent.

@Lazy
@Bean(name = "aws-kinesis-firehose-component")
@ConditionalOnClass(CamelContext.class)
@ConditionalOnMissingBean(KinesisFirehoseComponent.class)
public KinesisFirehoseComponent configureKinesisFirehoseComponent(CamelContext camelContext) throws Exception {
    KinesisFirehoseComponent component = new KinesisFirehoseComponent();
    component.setCamelContext(camelContext);
    return component;
}
Also used : KinesisFirehoseComponent(org.apache.camel.component.aws.firehose.KinesisFirehoseComponent) Lazy(org.springframework.context.annotation.Lazy) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnClass(org.springframework.boot.autoconfigure.condition.ConditionalOnClass) ConditionalOnBean(org.springframework.boot.autoconfigure.condition.ConditionalOnBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)807 Bean (org.springframework.context.annotation.Bean)807 ConditionalOnBean (org.springframework.boot.autoconfigure.condition.ConditionalOnBean)339 ConditionalOnClass (org.springframework.boot.autoconfigure.condition.ConditionalOnClass)298 RefreshScope (org.springframework.cloud.context.config.annotation.RefreshScope)251 Lazy (org.springframework.context.annotation.Lazy)227 lombok.val (lombok.val)210 HashMap (java.util.HashMap)190 Map (java.util.Map)113 CamelContextAware (org.apache.camel.CamelContextAware)69 RuntimeCamelException (org.apache.camel.RuntimeCamelException)45 DataFormatFactory (org.apache.camel.spi.DataFormatFactory)45 EnableConfigurationProperties (org.springframework.boot.context.properties.EnableConfigurationProperties)29 Scope (org.springframework.context.annotation.Scope)26 Autowired (org.springframework.beans.factory.annotation.Autowired)23 Configuration (org.springframework.context.annotation.Configuration)21 Qualifier (org.springframework.beans.factory.annotation.Qualifier)20 DefaultChainingMultifactorAuthenticationBypassProvider (org.apereo.cas.authentication.bypass.DefaultChainingMultifactorAuthenticationBypassProvider)19 CasConfigurationProperties (org.apereo.cas.configuration.CasConfigurationProperties)19 AuthenticationMultifactorAuthenticationProviderBypassEvaluator (org.apereo.cas.authentication.bypass.AuthenticationMultifactorAuthenticationProviderBypassEvaluator)17