@Test public void testClassLoaderCreated() throws Exception { ClassLoader db1Loader = dbResService.getClassLoader(DB1); ClassLoader db2Loader = dbResService.getClassLoader(DB2); Assert.assertNotNull(db1Loader); Assert.assertNotNull(db2Loader); Assert.assertTrue(db1Loader != db2Loader); }
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; }