5.2. Bootstrap Services

5.2.1. com.sri.iris.kernel.IIrisAppDirLocator

com.sri.iris.kernel.IIrisAppDirLocator is used by all IRIS components to locate the persistence directory where all runtime data is stored. This is the directory where the databases and other information is stored. It is mandated that all applications use this service because as part of boostrapping this directory can be changed. For example, unit tests reset the directory location to a new clean temporary directory. This service has 2 methods:

File getIrisUserDir()

Retrieves the application data directory

File getComponentDir(String component)

Ensures a sub-directory in the application directory given a component name.

5.2.2. com.sri.iris.kernel.user.IUserAccountManager

com.sri.iris.kernel.user.IUserAccountManager is used by IRIS to retrieve the stored user name/password and to create a new account. IRIS uses this service at startup when displaying the login pane. Note that applications which bootstrap IRIS can stub this implementation and the ILogin service out to perform automatic login.

5.2.3. com.sri.iris.kernel.user.ILogin

com.sri.iris.kernel.user.ILogin displays the login pane and allows the user to choose startup options.