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

org.bidib.wizard.localhost.client.config.LocalHostClientConfig Maven / Gradle / Ivy

There is a newer version: 2.0.29
Show newest version
package org.bidib.wizard.localhost.client.config;

import org.bidib.wizard.api.model.NodeListProvider;
import org.bidib.wizard.common.model.settings.LocalHostSettingsInterface;
import org.bidib.wizard.localhost.client.controller.LocalHostClientController;
import org.bidib.wizard.localhost.client.preferences.LocalHostSettingsPanel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;

import com.vlsolutions.swing.docking.DockingDesktop;

@Configuration
public class LocalHostClientConfig {

    private static final Logger LOGGER = LoggerFactory.getLogger(LocalHostClientConfig.class);

    @Bean
    @Lazy
    LocalHostSettingsPanel localHostSettingsPanel(final LocalHostSettingsInterface localHostSettings) {
        LOGGER.info("Create new instance of LocalHostSettingsPanel.");

        return new LocalHostSettingsPanel(localHostSettings);
    }

    @Bean
    @Lazy
    LocalHostClientController localHostClientController(
        final DockingDesktop desktop, final NodeListProvider nodeListProvider) {

        final LocalHostClientController controller = new LocalHostClientController(desktop, nodeListProvider);
        return controller;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy