Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::IServiceLoader Class Referenceabstract

Public Types

typedef IServiceFactory *(* CreateServiceFactoryFunc) (IServiceInfo *)
 Type of a function that returns a factory for a given service.

Public Member Functions

virtual ~IServiceLoader ()=default
 Releases resources.
virtual void loadApplicationServices (IApplication *)=0
 Loads available application singleton and autoload services.
virtual void loadSessionServices (ISession *)=0
 Loads available session singleton and autoload services.
virtual void loadSubDomainServices (ISubDomain *sd)=0
 Loads available subdomain singleton and autoload services.
virtual bool loadSingletonService (ISubDomain *sd, const String &name)=0
 Loads the subdomain singleton service with name name.
virtual void loadModules (ISubDomain *sd, bool all_modules)=0
 Loads modules in the subdomain sd.
virtual void initializeModuleFactories (ISubDomain *sd)=0
 Calls the initialization methods for module factories.

Detailed Description

Definition at line 32 of file IServiceLoader.h.

Member Typedef Documentation

◆ CreateServiceFactoryFunc

typedef IServiceFactory *(* Arcane::IServiceLoader::CreateServiceFactoryFunc) (IServiceInfo *)

Type of a function that returns a factory for a given service.

Definition at line 42 of file IServiceLoader.h.

Member Function Documentation

◆ loadModules()

virtual void Arcane::IServiceLoader::loadModules ( ISubDomain * sd,
bool all_modules )
pure virtual

Loads modules in the subdomain sd.

If all_modules is true, all modules are loaded; otherwise, only modules with the 'autoload' attribute are loaded

◆ loadSingletonService()

virtual bool Arcane::IServiceLoader::loadSingletonService ( ISubDomain * sd,
const String & name )
pure virtual

Loads the subdomain singleton service with name name.

Returns true upon success and false if the singleton service is not found.


The documentation for this class was generated from the following file: