@Test public void shouldCreateIpBlockerImplInstance() { IpBlocker ipBlocker = new IpBlockerFactoryImpl().create(ConfigMapUtil.getTextConfigMap()); assertTrue(ipBlocker instanceof IpBlockerImpl); }
@Override public IpBlocker create(Map<String, String> config) { try { IpBlockerImpl ipBlocker = new IpBlockerImpl(); ipBlocker.init(config); return ipBlocker; } catch (Exception ex) { throw new IpBlockerCreationException(ex); } }
IpBlockerFactoryImpl extends IpBlockerFactory { @Override public IpBlocker create(Map<String, String> config) { try { IpBlockerImpl ipBlocker = new IpBlockerImpl(); ipBlocker.init(config); return ipBlocker; } catch (Exception ex) { throw new IpBlockerCreationException(ex); } } }
IpBlockerFactoryImpl extends IpBlockerFactory { @Override public IpBlocker create(Map<String, String> config) { try { IpBlockerImpl ipBlocker = new IpBlockerImpl(); ipBlocker.init(config); return ipBlocker; } catch (Exception ex) { throw new IpBlockerCreationException(ex); } }  }
IpBlockerFactoryImpl extends IpBlockerFactory { @Override public IpBlocker create(Map<String, String> config) { try { IpBlockerImpl ipBlocker = new IpBlockerImpl(); ipBlocker.init(config); return ipBlocker; } catch (Exception ex) { throw new IpBlockerCreationException(ex); } }  @Override IpBlocker create(Map<String, String> config); }
IpBlockerFactoryImpl extends IpBlockerFactory { @Override public IpBlocker create(Map<String, String> config) { try { IpBlockerImpl ipBlocker = new IpBlockerImpl(); ipBlocker.init(config); return ipBlocker; } catch (Exception ex) { throw new IpBlockerCreationException(ex); } }  @Override IpBlocker create(Map<String, String> config);  }