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

ca.bitcoco.jsk.facebook.FacebookAutoConfiguration Maven / Gradle / Ivy

package ca.bitcoco.jsk.facebook;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "bitcoco.jsk.facebook")
@ConditionalOnProperty(name = "bitcoco.jsk.facebook.enabled", havingValue = "true")
public class FacebookAutoConfiguration {



    @Bean
    @ConditionalOnMissingBean
    public FacebookClient getFacebookClient() {
        return new FacebookClient();
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy