org.bidib.wizard.localhost.client.config.LocalHostClientConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-localhost-client Show documentation
Show all versions of bidibwizard-localhost-client Show documentation
jBiDiB BiDiB Wizard localhost client POM
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;
}
}