Namespace: Consultingwerk.Framework
Class 
CcsServiceManager Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Ccs.Common.IServiceManager

File:CcsServiceManager
Purpose:CCS-SSS compliant implementation of the Ccs.Common.IServiceManager
Interface
Description:The Consultingwerk.Framework.CcsServiceManager implements
the Ccs.Common.IServiceManager Interface. The implementation
extends the Consultingwerk.Framework.ServiceContainer
implementation and forwards requests to the
Consultingwerk.OERA.ServiceManager for IBusinessService
Implementations.
This implementation does ignore the poScope selector of the
getService() method.
Provides Logging in the ServiceManager custom log entry type
when Consultingwerk.Framework.FrameworkSettings:DebugMode = TRUE
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Fri Jun 23 11:41:22 CEST 2017
Notes:https://github.com/progress/CCS/blob/master/Specs/Startup_Session_Service_Managers/v1_0/Service_Manager_1_0.pdf
/* Mike Fechner, Consultingwerk Ltd. 13.09.2017
Preprocessor variables for SmartComponentLibrary, WinKit and SmartFramework
based on Consultingwerk/packages.i now



Top Method Summary
Options Name Purpose
+ dispose () Destroy/Shutdown/Anti-Initializer
+ Progress.Lang.Object getService (Class) Returns a usable instance of the requested service
+ Progress.Lang.Object getService (Class, ILifecycleScope) Returns a usable instance of the requested service
+ Progress.Lang.Object getService (Class, character) Returns a usable instance of the requested service.
+ initialize () Initializer/Startup
+ stopServices (ILifecycleScope) Destroys and flushes from any cache(s) objects scoped to the argument scope.


Method Detail
Top

PUBLIC dispose ()

Purpose: Destroy/Shutdown/Anti-Initializer
Notes: Disposes the Service Manager first. The Service Manager
is expected to dispose all services. This way, it's expected
that during disposal of the "ordinary" services, the Managers
are still present

Top

PUBLIC Progress.Lang.Object getService (Class)

Purpose: Returns a usable instance of the requested service
Notes: Throws an error when the service is not available
Calls into ServiceContainer:GetMandatoryService ()

Parameters:
poService Progress.Lang.Class
The service type requested
Returns Progress.Lang.Object
The instance of the requested service
Top

PUBLIC Progress.Lang.Object getService (Class, ILifecycleScope)

Purpose: Returns a usable instance of the requested service
Notes: Throws an error when the service is not available

Parameters:
poService Progress.Lang.Class
The service type requested
poScope Ccs.ServiceManager.ILifecycleScope
A requested scope. The implementation may choose to ignore this value.
Returns Progress.Lang.Object
The instance of the requested service
Top

PUBLIC Progress.Lang.Object getService (Class, character)

Purpose: Returns a usable instance of the requested service.
Notes: Throws an error when the service is not available

Parameters:
poService Progress.Lang.Class
The service type requested
pcAlias CHARACTER
An alias for the service
Returns Progress.Lang.Object
The instance of the requested service
Top

PUBLIC initialize ()

Purpose: Initializer/Startup
Notes:

Top

PUBLIC stopServices (ILifecycleScope)

Purpose: Destroys and flushes from any cache(s) objects scoped to the argument scope.
Notes:

Parameters:
poScope Ccs.ServiceManager.ILifecycleScope
ILifecycleScope A requested scope for which to stop services.


©2006-2019 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.08.2019 23:26:29