@Override public URL run() { return ClassloadingUtil.findResource(resourceName); } });
@Override public URL run() { return ClassloadingUtil.findResource(resourceName); } });
public static URL findResource(final String resourceName) { return findResource(ClassloadingUtil.class.getClassLoader(), resourceName); }
public static Properties loadProperties(ClassLoader loader, String propertiesFile) { Properties properties = new Properties(); try { URL url = findResource(loader, propertiesFile); if (url != null) { properties.load(url.openStream()); } } catch (Throwable ignored) { logger.warn(ignored); } return properties; }
@Override public URL run() { return ClassloadingUtil.findResource(resourceName); } });
@Override public URL run() { return ClassloadingUtil.findResource(resourceName); } });
@Override public URL run() { return ClassloadingUtil.findResource(resourceName); } });
@Override public URL run() { return ClassloadingUtil.findResource(resourceName); } });
@Override public URL run() { return ClassloadingUtil.findResource(resourceName); } });
@Override public URL run() { return ClassloadingUtil.findResource(resourceName); } });
@Override public URL run() { return ClassloadingUtil.findResource(resourceName); } });
@Override public URL run() { return ClassloadingUtil.findResource(resourceName); } });
@Override public URL run() { return ClassloadingUtil.findResource(resourceName); } });
@Override public URL run() { return ClassloadingUtil.findResource(resourceName); } });
public static URL findResource(final String resourceName) { return findResource(ClassloadingUtil.class.getClassLoader(), resourceName); }
public static Properties loadProperties(ClassLoader loader, String propertiesFile) { Properties properties = new Properties(); try { URL url = findResource(loader, propertiesFile); if (url != null) { properties.load(url.openStream()); } } catch (Throwable ignored) { logger.warn(ignored); } return properties; }
public static Properties loadProperties(ClassLoader loader, String propertiesFile) { Properties properties = new Properties(); try { URL url = findResource(loader, propertiesFile); if (url != null) { properties.load(url.openStream()); } } catch (Throwable ignored) { logger.warn(ignored); } return properties; }
public static Properties loadProperties(ClassLoader loader, String propertiesFile) { Properties properties = new Properties(); try { URL url = findResource(loader, propertiesFile); if (url != null) { properties.load(url.openStream()); } } catch (Throwable ignored) { logger.warn(ignored); } return properties; }
public static Properties loadProperties(ClassLoader loader, String propertiesFile) { Properties properties = new Properties(); try { URL url = findResource(loader, propertiesFile); if (url != null) { properties.load(url.openStream()); } } catch (Throwable ignored) { logger.warn(ignored); } return properties; }
public static Properties loadProperties(ClassLoader loader, String propertiesFile) { Properties properties = new Properties(); try { URL url = findResource(loader, propertiesFile); if (url != null) { properties.load(url.openStream()); } } catch (Throwable ignored) { logger.warn(ignored); } return properties; }