aboutsummaryrefslogtreecommitdiff
path: root/juick-notifications/src/main/java/com/juick/components/configuration/APNSConfiguration.java
blob: fbc17bc984c7b84576c80efaa1d05d273f3309d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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();
    }
}