class WiresManagerFactoryImpl implements WiresManagerFactory {

    @Override
    public WiresManager newWiresManager(final Layer layer) {
        WiresManager wiresManager = WiresManager.get(layer);
        wiresManager.setWiresHandlerFactory(wiresHandlerFactory);
        wiresManager.setWiresControlFactory(wiresControlFactory);
        //injecting a custom MagnetDecorator
        wiresManager.getMagnetManager().setMagnetDecorator(new StunnerMagnetDecorator());
        return wiresManager;
    }

    protected  WiresManagerFactoryImpl();
    @Inject public  WiresManagerFactoryImpl(final WiresControlFactory wiresControlFactory,
                                   final WiresHandlerFactory wiresHandlerFactory);

}