@Test public void featureLayerHelper() throws Exception { Layer layer = TestDataUtils.getPolygonLayer(); InfoToolHelper helper = InfoToolHelperLookup.getHelper(layer); assertNotNull(helper); assertEquals(FeatureLayerHelper.class, helper.getClass()); }
public static InfoToolHelper getHelper(Layer layer) { loadProviders(); for (InfoToolHelper helper : cachedInstances) { try { if (helper.isSupportedLayer(layer)) { return helper.getClass().getDeclaredConstructor().newInstance(); } } catch (Exception ex) { throw new RuntimeException(ex); } } return null; }
InfoToolHelperLookup { public static InfoToolHelper getHelper(Layer layer) { loadProviders(); for (InfoToolHelper helper : cachedInstances) { try { if (helper.isSupportedLayer(layer)) { return helper.getClass().getDeclaredConstructor().newInstance(); } } catch (Exception ex) { throw new RuntimeException(ex); } } return null; } }
InfoToolHelperLookup { public static InfoToolHelper getHelper(Layer layer) { loadProviders(); for (InfoToolHelper helper : cachedInstances) { try { if (helper.isSupportedLayer(layer)) { return helper.getClass().getDeclaredConstructor().newInstance(); } } catch (Exception ex) { throw new RuntimeException(ex); } } return null; }  }
InfoToolHelperLookup { public static InfoToolHelper getHelper(Layer layer) { loadProviders(); for (InfoToolHelper helper : cachedInstances) { try { if (helper.isSupportedLayer(layer)) { return helper.getClass().getDeclaredConstructor().newInstance(); } } catch (Exception ex) { throw new RuntimeException(ex); } } return null; }  static InfoToolHelper getHelper(Layer layer); }
InfoToolHelperLookup { public static InfoToolHelper getHelper(Layer layer) { loadProviders(); for (InfoToolHelper helper : cachedInstances) { try { if (helper.isSupportedLayer(layer)) { return helper.getClass().getDeclaredConstructor().newInstance(); } } catch (Exception ex) { throw new RuntimeException(ex); } } return null; }  static InfoToolHelper getHelper(Layer layer);  }