@Test public void testJarsLoaded() throws Exception { Assert.assertTrue(isJarLoaded(dbResService.getClassLoader(DB1), DB1), DB1 + " jar should be loaded"); Assert.assertTrue(isJarLoaded(dbResService.getClassLoader(DB2), DB2), DB2 + " jar should be loaded"); Assert.assertFalse(isJarLoaded(dbResService.getClassLoader(DB2), DB1)); Assert.assertFalse(isJarLoaded(dbResService.getClassLoader(DB1), DB2)); }
protected ClassLoader getClassLoader(String database) { return classLoaderCache.get(database); }
DatabaseResourceService extends AbstractService { protected ClassLoader getClassLoader(String database) { return classLoaderCache.get(database); } }
DatabaseResourceService extends AbstractService { protected ClassLoader getClassLoader(String database) { return classLoaderCache.get(database); } DatabaseResourceService(String name); }
DatabaseResourceService extends AbstractService { protected ClassLoader getClassLoader(String database) { return classLoaderCache.get(database); } DatabaseResourceService(String name); @Override synchronized void start(); @Override synchronized void stop(); Collection<LensSessionImpl.ResourceEntry> getResourcesForDatabase(String database); }
DatabaseResourceService extends AbstractService { protected ClassLoader getClassLoader(String database) { return classLoaderCache.get(database); } DatabaseResourceService(String name); @Override synchronized void start(); @Override synchronized void stop(); Collection<LensSessionImpl.ResourceEntry> getResourcesForDatabase(String database); static final String NAME; static final String LOAD_RESOURCES_ERRORS; }