@Test public void testClose() throws TTException { assertTrue(mStorage.createResource(mResource)); ISession session = mStorage.getSession(new SessionConfiguration(mResource.mProperties .getProperty(ConstructorProps.RESOURCE), null)); assertTrue(mStorage.close()); assertFalse(session.close()); assertFalse(mStorage.close()); }
@Override public synchronized boolean close() throws TTException { for (final ISession session : mSessions.values()) { session.close(); } return STORAGEMAP.remove(mStorageConfig.mFile) != null; }
Storage implements IStorage { @Override public synchronized boolean close() throws TTException { for (final ISession session : mSessions.values()) { session.close(); } return STORAGEMAP.remove(mStorageConfig.mFile) != null; } }
Storage implements IStorage { @Override public synchronized boolean close() throws TTException { for (final ISession session : mSessions.values()) { session.close(); } return STORAGEMAP.remove(mStorageConfig.mFile) != null; } private  Storage(final StorageConfiguration pStorageConf); }
Storage implements IStorage { @Override public synchronized boolean close() throws TTException { for (final ISession session : mSessions.values()) { session.close(); } return STORAGEMAP.remove(mStorageConfig.mFile) != null; } private  Storage(final StorageConfiguration pStorageConf); static synchronized boolean createStorage(final StorageConfiguration pStorageConfig); static synchronized void truncateStorage(final StorageConfiguration pConf); static synchronized boolean existsStorage(final File pStoragePath); @Override synchronized boolean createResource(final ResourceConfiguration pResConf); @Override synchronized boolean truncateResource(final SessionConfiguration pSesConf); static synchronized IStorage openStorage(final File pFile); @Override synchronized ISession getSession(final SessionConfiguration pSessionConf); @Override synchronized boolean close(); @Override boolean existsResource(String pResourceName); @Override String[] listResources(); @Override File getLocation(); @Override String toString(); }
Storage implements IStorage { @Override public synchronized boolean close() throws TTException { for (final ISession session : mSessions.values()) { session.close(); } return STORAGEMAP.remove(mStorageConfig.mFile) != null; } private  Storage(final StorageConfiguration pStorageConf); static synchronized boolean createStorage(final StorageConfiguration pStorageConfig); static synchronized void truncateStorage(final StorageConfiguration pConf); static synchronized boolean existsStorage(final File pStoragePath); @Override synchronized boolean createResource(final ResourceConfiguration pResConf); @Override synchronized boolean truncateResource(final SessionConfiguration pSesConf); static synchronized IStorage openStorage(final File pFile); @Override synchronized ISession getSession(final SessionConfiguration pSessionConf); @Override synchronized boolean close(); @Override boolean existsResource(String pResourceName); @Override String[] listResources(); @Override File getLocation(); @Override String toString();  }