forked from dkomanov/fizteh-java-2014
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed throwing exceptions in interfaces' implementations
- Loading branch information
1 parent
584bec9
commit da7f5d6
Showing
6 changed files
with
70 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
src/ru/fizteh/fivt/storage/strings/TableProviderFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
package ru.fizteh.fivt.storage.strings; | ||
|
||
/** | ||
* Представляет интерфейс для создание экземпляров {@link TableProvider}. Предполагается, что реализация интерфейса | ||
* фабрики будет иметь публичный конструктор без параметров. | ||
* | ||
* Представляет интерфейс для создание экземпляров {@link ru.fizteh.fivt.storage.strings.TableProvider}. | ||
* Предполагается, что реализация интерфейса фабрики будет иметь публичный конструктор без | ||
* параметров. | ||
* @author Fedor Lavrentyev | ||
* @author Dmitriy Komanov | ||
*/ | ||
public interface TableProviderFactory { | ||
|
||
/** | ||
* Возвращает объект для работы с базой данных. | ||
* | ||
* @param dir Директория с файлами базы данных. | ||
* @param dir | ||
* Директория с файлами базы данных. | ||
* @return Объект для работы с базой данных. | ||
* @throws IllegalArgumentException Если значение директории null или имеет недопустимое значение. | ||
* @throws IllegalArgumentException | ||
* Если значение директории null или имеет недопустимое значение. | ||
*/ | ||
TableProvider create(String dir); | ||
TableProvider create(String dir) throws IllegalArgumentException; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters