@Test(expected = KeyplePluginNotFoundException.class) public void testGetPluginFail() throws Exception { proxyService.getPlugin("unknown"); }
public synchronized ReaderPlugin getPlugin(String name) { synchronized (MONITOR) { ReaderPlugin readerPlugin = plugins.get(name); if (readerPlugin == null) { throw new KeyplePluginNotFoundException(name); } return readerPlugin; } }
SeProxyService { public synchronized ReaderPlugin getPlugin(String name) { synchronized (MONITOR) { ReaderPlugin readerPlugin = plugins.get(name); if (readerPlugin == null) { throw new KeyplePluginNotFoundException(name); } return readerPlugin; } } }
SeProxyService { public synchronized ReaderPlugin getPlugin(String name) { synchronized (MONITOR) { ReaderPlugin readerPlugin = plugins.get(name); if (readerPlugin == null) { throw new KeyplePluginNotFoundException(name); } return readerPlugin; } } private  SeProxyService(); }
SeProxyService { public synchronized ReaderPlugin getPlugin(String name) { synchronized (MONITOR) { ReaderPlugin readerPlugin = plugins.get(name); if (readerPlugin == null) { throw new KeyplePluginNotFoundException(name); } return readerPlugin; } } private  SeProxyService(); static SeProxyService getInstance(); ReaderPlugin registerPlugin(PluginFactory pluginFactory); boolean unregisterPlugin(String pluginName); synchronized boolean isRegistered(String pluginName); synchronized Map<String, ReaderPlugin> getPlugins(); synchronized ReaderPlugin getPlugin(String name); String getVersion(); }
SeProxyService { public synchronized ReaderPlugin getPlugin(String name) { synchronized (MONITOR) { ReaderPlugin readerPlugin = plugins.get(name); if (readerPlugin == null) { throw new KeyplePluginNotFoundException(name); } return readerPlugin; } } private  SeProxyService(); static SeProxyService getInstance(); ReaderPlugin registerPlugin(PluginFactory pluginFactory); boolean unregisterPlugin(String pluginName); synchronized boolean isRegistered(String pluginName); synchronized Map<String, ReaderPlugin> getPlugins(); synchronized ReaderPlugin getPlugin(String name); String getVersion();  }