public abstract class AsyncInitializableObject<C extends ApplicationContext> extends AbstractInitializableObject<C> implements AsyncInitializable
| Constructor and Description |
|---|
AsyncInitializableObject(C ctx) |
AsyncInitializableObject(C ctx,
LogChannel logCh) |
| Modifier and Type | Method and Description |
|---|---|
void |
awaitInitialized()
Awaits the async initialization to finish.
|
void |
checkInitialized()
Checks whether initialization has yet been done and throws
an
NotInitializedException if not. |
protected AsyncTask |
createInitTask() |
AsyncTask |
initAsyc()
Returns a yet unsubmitted task that will call
Initializable.init() asynchronously. |
protected void |
setInitialized() |
init, isInitializedgetApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinit, isInitializedpublic AsyncInitializableObject(C ctx)
public AsyncInitializableObject(C ctx, LogChannel logCh)
protected final void setInitialized()
setInitialized in class AbstractInitializableObject<C extends ApplicationContext>public final void checkInitialized()
InitializableNotInitializedException if not.checkInitialized in interface InitializablecheckInitialized in class AbstractInitializableObject<C extends ApplicationContext>public void awaitInitialized()
throws java.lang.InterruptedException
AsyncInitializableawaitInitialized in interface AsyncInitializablejava.lang.InterruptedExceptionpublic AsyncTask initAsyc() throws java.lang.Exception
AsyncInitializableInitializable.init() asynchronously.
The caller may do something else meanwhile and at a later time call
AsyncInitializable.awaitInitialized() in order to wait on the initialization to finish.initAsyc in interface AsyncInitializablejava.lang.Exceptionprotected AsyncTask createInitTask()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.