001package jmri.jmrit.logixng.tools.debugger; 002 003import jmri.InstanceManager; 004import jmri.jmrit.logixng.*; 005 006import org.openide.util.lookup.ServiceProvider; 007 008/** 009 * 010 * @author daniel 011 */ 012@ServiceProvider(service = MaleDigitalActionSocketFactory.class) 013public class DebuggerMaleDigitalActionSocketFactory implements MaleDigitalActionSocketFactory { 014 015 @Override 016 public MaleDigitalActionSocket encapsulateMaleSocket(BaseManager<MaleDigitalActionSocket> manager, MaleDigitalActionSocket maleSocket) { 017 018 if (! InstanceManager.getDefault(LogixNGPreferences.class).getInstallDebugger()) { 019 return maleSocket; 020 } 021 022 return new DebuggerMaleDigitalActionSocket(manager, maleSocket); 023 } 024 025}