RESULT - Тип Self ссылкиCONSOLE - Тип консолиpublic abstract class StarterOptions<RESULT,CONSOLE extends Console> extends Object implements GenericStarter<RESULT,CONSOLE>
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
args
Аргументы командной строки
|
protected ConcurrentLinkedQueue<Reciver<? super CONSOLE>> |
onStartedQueue
Очередь заданий при старте консоли
|
| Constructor and Description |
|---|
StarterOptions()
Создаение опций запуска
|
| Modifier and Type | Method and Description |
|---|---|
RESULT |
appdir(String appdir)
Указывает рабочий каталог приложения
|
RESULT |
args(String... args)
Аргументы командной строки
|
abstract CONSOLE |
createConsole()
Создание/получение консоли
|
String[] |
getArgs()
Аргументы командной строки
|
protected void |
initAppDataDir(Console cons,
String dataDir)
Инициализация каталога приложения
|
protected String |
msgCantMkAppdir(String dataDir)
Сообщение о не возможности создать каталог appdir
|
protected String |
msgNotAppdir(String dataDir)
Сообщение о том что путь (appdir) не явлется каталогом
|
RESULT |
onStarted(Reciver<? super CONSOLE> reciver)
Добавляет задание для старта консоли
|
protected abstract RESULT |
result(String methodName)
Возвращает self ссылку
|
void |
setArgs(String[] args)
Аргументы командной строки
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyprotected String[] args
protected ConcurrentLinkedQueue<Reciver<? super CONSOLE extends Console>> onStartedQueue
public String[] getArgs()
getArgs in interface GenericStarter<RESULT,CONSOLE extends Console>public void setArgs(String[] args)
setArgs in interface GenericStarter<RESULT,CONSOLE extends Console>args - аргументыpublic RESULT args(String... args)
args in interface GenericStarter<RESULT,CONSOLE extends Console>args - аргументыpublic RESULT onStarted(Reciver<? super CONSOLE> reciver)
onStarted in interface GenericStarter<RESULT,CONSOLE extends Console>reciver - заданиеprotected abstract RESULT result(String methodName)
methodName - имя методаpublic abstract CONSOLE createConsole()
protected String msgCantMkAppdir(String dataDir)
dataDir - Путь к каталогуprotected String msgNotAppdir(String dataDir)
dataDir - Путь к appdirprotected void initAppDataDir(Console cons, String dataDir)
cons - консольdataDir - каталогCopyright © 2018. All rights reserved.