Initializes a new instance of the {@link geocortex.essentials.AsyncInitializable} class.
The remote endpoint to initialize against, typically a REST endpoint serving JSON responses.
Occurs when initialization of this object fails.
Occurs when initialization succeeds with a response from the REST endpoint. Depending on the API, this response may actually be an error message served as a correct HTTP response.
The exception that occurred if the object could not be initialized.
Whether or not the object was successfully initialized.
The {@link geocortex.essentials.Site} that this resource belongs to.
The URL that this resource was initialized from.
Performs a callback function when this instance has been initialized. If this instance is already initialized when this function is called, the callback function will execute immediately.
The scope to using when executing the callback - i.e. the value of the 'this' variable in the callback function. This parameter may be ommitted in which cased the first parameter will be used as the callback function.
The callback function to execute when this instance has been initialized.
Initializes the {@link geocortex.essentials.AsyncInitializable}. This is an asynchronous method, you may subscribe to the onInitialized and onInitializationFailed events for completion information.
Base class for objects that are typically initialized from a REST endpoint, e.g. a Site, or a MapService.
Provides methods, events and properties common to objects commonly initialized in an asynchronous fashion. This is the sequence of an asynchronous initialization: