001package jmri.jmrix.mqtt.configurexml; 002 003import jmri.jmrix.configurexml.AbstractNetworkConnectionConfigXml; 004import jmri.jmrix.mqtt.MqttAdapter; 005import jmri.jmrix.mqtt.MqttConnectionConfig; 006 007/** 008 * 009 * @author lionel 010 */ 011public class MqttConnectionConfigXml extends AbstractNetworkConnectionConfigXml { 012 013 public MqttConnectionConfigXml() { 014 super(); 015 } 016 017 @Override 018 protected void getInstance() { 019 adapter = new MqttAdapter(); 020 } 021 022 @Override 023 protected void getInstance(Object object) { 024 adapter = ((MqttConnectionConfig) object).getAdapter(); 025 } 026 027 @Override 028 protected void register() { 029 this.register(new MqttConnectionConfig(adapter)); 030 } 031 032}