Skip to main content
Jump to: navigation, search

Examples/Eclipse Business Expense Reporting Tool/User State Service

< Examples‎ | Eclipse Business Expense Reporting Tool
Revision as of 15:09, 26 February 2009 by Wayne.eclipse.org (Talk | contribs) (New page: {{warning2|text=This page is under development}} Managing the user state in a standalone application is relatively easy. EBERT runs as both a standalone application (RCP, ERCP) and as a mu...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This page is under development

Managing the user state in a standalone application is relatively easy. EBERT runs as both a standalone application (RCP, ERCP) and as a multiple-user application (RAP). To support both environments, we have to be careful how we store user state.

EBERT defines an Equinox/OSGi Service of type org.eclipse.examples.expenses.context.IUserContextService.java—defined in the org.eclipse.examples.expenses.views project—along with two different implementations. Implementations of this type are responsible for one thing: answer, when asked, the user state (an instance of org.eclipse.examples.expenses.context.IUserContext) for the current user.

The notion of "current user" is pretty simple in the standalone case: there is only one user.

Back to the top