aboutsummaryrefslogtreecommitdiff
path: root/juick-notifications/src/main/java/com/juick/components/configuration/GCMConfiguration.java
blob: 68d9f0174aa1a2eaebb7be9aab3861b20899778f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.juick.components.configuration;

import com.juick.components.FirebaseManager;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by vital on 29.03.2017.
 */
@Configuration
@ConditionalOnProperty(name = "gcm_key")
public class GCMConfiguration {

    @Bean
    public FirebaseManager firebaseManager() {
        return new FirebaseManager();
    }
}