ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
application_context Class Reference

Holds all shared services for the ores.wt.service application. More...

#include <application_context.hpp>

Collaboration diagram for application_context:
Collaboration graph

Public Member Functions

void initialize (const database::database_options &db_opts)
 
bool is_initialized () const
 
void start_eventing ()
 Start the event source to listen for PostgreSQL notifications.
 
void stop_eventing ()
 Stop the event source.
 
database::contextdb_context ()
 
iam::service::account_serviceaccount_service ()
 
iam::service::account_setup_serviceaccount_setup_service ()
 
iam::service::authorization_serviceauthorization_service ()
 
variability::service::system_settings_servicesystem_settings_service ()
 
refdata::service::currency_servicecurrency_service ()
 
refdata::service::country_servicecountry_service ()
 
bool is_bootstrap_mode () const
 

Static Public Member Functions

static application_contextinstance ()
 

Detailed Description

Holds all shared services for the ores.wt.service application.

This is a singleton that is initialized at application startup and shared across all Wt sessions. It manages the database connection and domain services.

Member Function Documentation

◆ start_eventing()

void start_eventing ( )

Start the event source to listen for PostgreSQL notifications.

Call this after initialize() to begin receiving database change events.

◆ stop_eventing()

void stop_eventing ( )

Stop the event source.

Call this during shutdown to cleanly stop listening for notifications.