package com.juick.components.configuration; import com.juick.components.APNSManager; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * Created by vital on 28.03.2017. */ @Configuration @ConditionalOnProperty(name = "ios_p8_key") public class APNSConfiguration { @Bean public APNSManager apnsManager() { return new APNSManager(); } }