/*
 * Copyright (c) 2017. Vitus Lehner. UrbanLife+. Universität der Bundeswehr München.
 */

package org.sociotech.urbanlifeplus.microinforadiator;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.eventbus.EventBus;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author vituslehner 03.07.17
 */
@Configuration
public class CoreConfiguration {

    @Bean("reactorEventBus")
    public EventBus reactorEventBus() {
        return new EventBus("reactorEventBus");
    }

    @Bean
    public ObjectMapper objectMapper() {
        return new ObjectMapper();
    }

    @Value("${ULP_MIR_ID}")
    private String id;

    public String getId() {
        return id;
    }

    @Value("${ULP_RECURSION_DEPTH:3}")
    private int recursionDepth;

    public int getRecursionDepth() {
        return recursionDepth;
    }
}

/*
 * Copyright (c) 2017. Vitus Lehner. UrbanLife+. Universität der Bundeswehr München.
 */

package org.sociotech.urbanlifeplus.microinforadiator;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.eventbus.EventBus;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author vituslehner 03.07.17
 */
@Configuration
public class CoreConfiguration {

    @Bean("reactorEventBus")
    public EventBus reactorEventBus() {
        return new EventBus("reactorEventBus");
    }

    @Bean
    public ObjectMapper objectMapper() {
        return new ObjectMapper();
    }

    @Value("${ULP_MIR_ID}")
    private String mirId;

    public String getMirId() {
        return mirId;
    }

    @Value("${ULP_RECURSION_DEPTH:3}")
    private int recursionDepth;

    public int getRecursionDepth() {
        return recursionDepth;
    }
}

Rename core config "id" to "mirId"
Rename core config "id" to "mirId"
