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 = MaleAnalogActionSocketFactory.class) 013public class DebuggerMaleAnalogActionSocketFactory implements MaleAnalogActionSocketFactory { 014 015 @Override 016 public MaleAnalogActionSocket encapsulateMaleSocket(BaseManager<MaleAnalogActionSocket> manager, MaleAnalogActionSocket maleSocket) { 017 018 if (! InstanceManager.getDefault(LogixNGPreferences.class).getInstallDebugger()) { 019 return maleSocket; 020 } 021 022 return new DebuggerMaleAnalogActionSocket(manager, maleSocket); 023 } 024 025}