@Test public void testGetWatchResources() throws Exception { PluginConfiguration pluginConfiguration = new PluginConfiguration(getClass().getClassLoader()); File tempFile = File.createTempFile("test", "test"); pluginConfiguration.properties.setProperty("watchResources", tempFile.toURI().toURL().toString()); assertEquals(tempFile.toURI().toURL(), pluginConfiguration.getWatchResources()[0]); pluginConfiguration.properties.setProperty("watchResources", tempFile.getAbsolutePath()); File canonicalFile = tempFile.getCanonicalFile(); assertEquals(canonicalFile.toURI().toURL(), pluginConfiguration.getWatchResources()[0]); }
public URL[] getWatchResources() { return convertToURL(getProperty("watchResources")); }
PluginConfiguration { public URL[] getWatchResources() { return convertToURL(getProperty("watchResources")); } }
PluginConfiguration { public URL[] getWatchResources() { return convertToURL(getProperty("watchResources")); } PluginConfiguration(ClassLoader classLoader);  PluginConfiguration(PluginConfiguration parent, ClassLoader classLoader); }
PluginConfiguration { public URL[] getWatchResources() { return convertToURL(getProperty("watchResources")); } PluginConfiguration(ClassLoader classLoader);  PluginConfiguration(PluginConfiguration parent, ClassLoader classLoader); String getProperty(String property); String getProperty(String property, String defaultValue); boolean getPropertyBoolean(String property); URL[] getExtraClasspath(); URL[] getWatchResources(); String[] getBasePackagePrefixes(); URL[] getWebappDir(); List<String> getDisabledPlugins(); boolean isDisabledPlugin(String pluginName); boolean isDisabledPlugin(Class<?> pluginClass); ClassLoader getClassLoader(); boolean containsPropertyFile(); }
PluginConfiguration { public URL[] getWatchResources() { return convertToURL(getProperty("watchResources")); } PluginConfiguration(ClassLoader classLoader);  PluginConfiguration(PluginConfiguration parent, ClassLoader classLoader); String getProperty(String property); String getProperty(String property, String defaultValue); boolean getPropertyBoolean(String property); URL[] getExtraClasspath(); URL[] getWatchResources(); String[] getBasePackagePrefixes(); URL[] getWebappDir(); List<String> getDisabledPlugins(); boolean isDisabledPlugin(String pluginName); boolean isDisabledPlugin(Class<?> pluginClass); ClassLoader getClassLoader(); boolean containsPropertyFile();  }