Chapter 14. Package com.itmill.toolkit.service

Provides some general service classes used throughout a IT Mill Toolkit based applications.

<!-- Put @see and @since tags down here. -->

Interface ApplicationContext

Application context provides information about the running context of the application. Each context is shared by all applications that are open for one user. In web-environment this corresponds to HttpSession.

Synopsis

Since

3.1

Inheritance Path.  com.itmill.toolkit.service.ApplicationContext

addTransactionListener(ApplicationContext.TransactionListener)

Parameters

listener

The listener to be added.

Add transaction listener to this context.

getApplications()

Parameters

return

Collection containing all applications in this context

Get the applications in this context. Get all applications in this context. Each application context contains all applications that are open for one user.

getBaseDirectory()

Parameters

return

The application base directory

Returns application context base directory. Typically an application is deployed in a such way that is has application directory. For web applications this directory is the root directory of the web applications. In some cases application might not have application directory (for example web applications running inside of war).

removeTransactionListener(ApplicationContext.TransactionListener)

Parameters

listener

The listener to be removed.

Remove transaction listener from this context.