Namespace: Consultingwerk.Framework
Interface 
IKeyedServiceContainer Copy to Clipboard
Parent classes:
Inherits: Consultingwerk.Framework.IServiceContainer
Implemented by: Consultingwerk.Framework.ServiceContainer




Top Method Summary
Options Name Purpose
Progress.Lang.Object AddNewService (Class, Object, character) Adds the specified service to the service container using the given Service Key
Progress.Lang.Object AddNewService (Class, Object, character, logical) Adds the specified service to the service container using the given Service Key
Progress.Lang.Object AddNewService (Class, Object, Enum) Adds the specified service to the service container using the given Service Key
Progress.Lang.Object AddNewService (Class, Object, Enum, logical) Adds the specified service to the service container using the given Service Key
Progress.Lang.Object AddService (Class, Object, character) Adds the specified service to the service container using the given Service Key
Progress.Lang.Object AddService (Class, Object, character, logical) Adds the specified service to the service container using the given Service Key
Progress.Lang.Object AddService (Class, Object, Enum) Adds the specified service to the service container using the given Service Key
Progress.Lang.Object AddService (Class, Object, Enum, logical) Adds the specified service to the service container using the given Service Key
Progress.Lang.Object GetMandatoryService (Class, character) Gets the service object of the specified type and Service Key
Progress.Lang.Object GetMandatoryService (Class, Enum) Gets the service object of the specified type and Service Key
Progress.Lang.Object GetService (Class, character) Gets the service object of the specified type and Service Key
Progress.Lang.Object GetService (Class, Enum) Gets the service object of the specified type and Service Key
Progress.Lang.Object GetServices (Class) Returns all service instances registered for the specified type
Progress.Lang.Object GetServices (Class, character[]) Returns all service instances registered for the specified type together with the Service Keys they are registered with
LOGICAL IsActive (Class, character) Returns if a service with the given type and Service Key is active (loaded) in the service container
LOGICAL IsActive (Class, Enum) Returns if a service with the given type and Service Key is active (loaded) in the service container
Progress.Lang.Object ReloadService (Class, character) Reloads the Service instance registered with the given type and Service Key
Progress.Lang.Object ReloadService (Class, Enum) Reloads the Service instance registered with the given type and Service Key
RemoveService (Class, character) Removes the service registered with the specified type and Service Key from the service container
RemoveService (Class, Enum) Removes the service registered with the specified type and Service Key from the service container
RemoveServices (Class) Removes all services registered with the specified type from the service container


Method Detail
Top

Progress.Lang.Object AddNewService (Class, Object, character)

Purpose: Adds the specified service to the service container using the
given Service Key
Notes: If the Service implements the CCS IService Interface, we'll call the
initialize() method

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the service to add
poObject Progress.Lang.Object
An instance of the service type to add. This object must implement or inherit from the type indicated by the serviceType parameter
pcServiceKey CHARACTER
The Service Key to register the service with, "" to register the service without a Service Key
Returns Progress.Lang.Object
The reference to the service that was added (poObject). This allows fluid style usage of this routine
Top

Progress.Lang.Object AddNewService (Class, Object, character, logical)

Purpose: Adds the specified service to the service container using the
given Service Key
Notes: If the Service implements the CCS IService Interface, we'll call the
initialize() method

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the service to add
poObject Progress.Lang.Object
An instance of the service type to add. This object must implement or inherit from the type indicated by the serviceType parameter
pcServiceKey CHARACTER
The Service Key to register the service with, "" to register the service without a Service Key
plDefault LOGICAL
Logical value indicating if the service is the default service of the service type - the service returned by GetService without a Service Key
Returns Progress.Lang.Object
The reference to the service that was added (poObject). This allows fluid style usage of this routine
Top

Progress.Lang.Object AddNewService (Class, Object, Enum)

Purpose: Adds the specified service to the service container using the
given Service Key
Notes: If the Service implements the CCS IService Interface, we'll call the
initialize() method

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the service to add
poObject Progress.Lang.Object
An instance of the service type to add. This object must implement or inherit from the type indicated by the serviceType parameter
poServiceKey Progress.Lang.Enum
The Enum member providing the Service Key to register the service with
Returns Progress.Lang.Object
The reference to the service that was added (poObject). This allows fluid style usage of this routine
Top

Progress.Lang.Object AddNewService (Class, Object, Enum, logical)

Purpose: Adds the specified service to the service container using the
given Service Key
Notes: If the Service implements the CCS IService Interface, we'll call the
initialize() method

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the service to add
poObject Progress.Lang.Object
An instance of the service type to add. This object must implement or inherit from the type indicated by the serviceType parameter
poServiceKey Progress.Lang.Enum
The Enum member providing the Service Key to register the service with
plDefault LOGICAL
Logical value indicating if the service is the default service of the service type - the service returned by GetService without a Service Key
Returns Progress.Lang.Object
The reference to the service that was added (poObject). This allows fluid style usage of this routine
Top

Progress.Lang.Object AddService (Class, Object, character)

Purpose: Adds the specified service to the service container using the
given Service Key
Notes: A service registered with the empty Service Key ("") is always
the default service of the service type

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the service to add
poObject Progress.Lang.Object
An instance of the service type to add. This object must implement or inherit from the type indicated by the serviceType parameter
pcServiceKey CHARACTER
The Service Key to register the service with, "" to register the service without a Service Key
Returns Progress.Lang.Object
The reference to the service that was added (poObject). This allows fluid style usage of this routine
Top

Progress.Lang.Object AddService (Class, Object, character, logical)

Purpose: Adds the specified service to the service container using the
given Service Key
Notes: Only a single service per service type may be the default
service; a conflicting registration raises a
DefaultServiceAlreadyRegisteredException

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the service to add
poObject Progress.Lang.Object
An instance of the service type to add. This object must implement or inherit from the type indicated by the serviceType parameter
pcServiceKey CHARACTER
The Service Key to register the service with, "" to register the service without a Service Key
plDefault LOGICAL
Logical value indicating if the service is the default service of the service type - the service returned by GetService without a Service Key
Returns Progress.Lang.Object
The reference to the service that was added (poObject). This allows fluid style usage of this routine
Top

Progress.Lang.Object AddService (Class, Object, Enum)

Purpose: Adds the specified service to the service container using the
given Service Key
Notes: A service registered with the empty Service Key ("") is always
the default service of the service type

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the service to add
poObject Progress.Lang.Object
An instance of the service type to add. This object must implement or inherit from the type indicated by the serviceType parameter
poServiceKey Progress.Lang.Enum
The Enum member providing the Service Key to register the service with
Returns Progress.Lang.Object
The reference to the service that was added (poObject). This allows fluid style usage of this routine
Top

Progress.Lang.Object AddService (Class, Object, Enum, logical)

Purpose: Adds the specified service to the service container using the
given Service Key
Notes: Only a single service per service type may be the default
service; a conflicting registration raises a
DefaultServiceAlreadyRegisteredException

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the service to add
poObject Progress.Lang.Object
An instance of the service type to add. This object must implement or inherit from the type indicated by the serviceType parameter
poServiceKey Progress.Lang.Enum
The Enum member providing the Service Key to register the service with
plDefault LOGICAL
Logical value indicating if the service is the default service of the service type - the service returned by GetService without a Service Key
Returns Progress.Lang.Object
The reference to the service that was added (poObject). This allows fluid style usage of this routine
Top

Progress.Lang.Object GetMandatoryService (Class, character)

Purpose: Gets the service object of the specified type and Service Key
Notes: Throws a ServiceNotRegisteredException when no service of that
type and Service Key is registered

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the service to return
pcServiceKey CHARACTER
The Service Key of the service to return, "" for the default service of the service type
Returns Progress.Lang.Object
The reference to the instance of the service
Top

Progress.Lang.Object GetMandatoryService (Class, Enum)

Purpose: Gets the service object of the specified type and Service Key
Notes: Throws a ServiceNotRegisteredException when no service of that
type and Service Key is registered

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the service to return
poServiceKey Progress.Lang.Enum
The Enum member providing the Service Key of the service to return
Returns Progress.Lang.Object
The reference to the instance of the service
Top

Progress.Lang.Object GetService (Class, character)

Purpose: Gets the service object of the specified type and Service Key
Notes: Returns ? when no service of that type and Service Key is registered

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the service to return
pcServiceKey CHARACTER
The Service Key of the service to return, "" for the default service of the service type
Returns Progress.Lang.Object
The reference to the instance of the service or ? when the service is not registered with the service container
Top

Progress.Lang.Object GetService (Class, Enum)

Purpose: Gets the service object of the specified type and Service Key
Notes: Returns ? when no service of that type and Service Key is registered

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the service to return
poServiceKey Progress.Lang.Enum
The Enum member providing the Service Key of the service to return
Returns Progress.Lang.Object
The reference to the instance of the service or ? when the service is not registered with the service container
Top

Progress.Lang.Object GetServices (Class)

Purpose: Returns all service instances registered for the specified type
Notes: Returns the service registered without a Service Key as well as
all keyed registrations of the service type, ordered by the
Service Key. Lazy loading registrations are materialized before
returning. Returns an indeterminate array when no service of the
type is registered

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the services to return
Returns Progress.Lang.Object
The array of the service instances registered for the service type
Top

Progress.Lang.Object GetServices (Class, character[])

Purpose: Returns all service instances registered for the specified type
together with the Service Keys they are registered with
Notes: The returned array of service instances and the pcServiceKeys
array use the same order (by Service Key), so that the n-th
Service Key belongs to the n-th service instance. Both arrays
are indeterminate when no service of the type is registered

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the services to return
pcServiceKeys CHARACTER
OUTPUT The Service Keys of the returned service instances
Returns Progress.Lang.Object
The array of the service instances registered for the service type
Top

LOGICAL IsActive (Class, character)

Purpose: Returns if a service with the given type and Service Key is
active (loaded) in the service container
Notes:

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the service to check
pcServiceKey CHARACTER
The Service Key of the service to check, "" for the default service of the service type
Returns LOGICAL
Logical value indicating if the service with the given type and Service Key is active
Top

LOGICAL IsActive (Class, Enum)

Purpose: Returns if a service with the given type and Service Key is
active (loaded) in the service container
Notes:

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the service to check
poServiceKey Progress.Lang.Enum
The Enum member providing the Service Key of the service to check
Returns LOGICAL
Logical value indicating if the service with the given type and Service Key is active
Top

Progress.Lang.Object ReloadService (Class, character)

Purpose: Reloads the Service instance registered with the given type and
Service Key
Notes: Does not actively delete the existing service instance, it will
just be deregistered. The reloaded service keeps the Service Key
and the default service flag of the replaced registration

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the service to reload
pcServiceKey CHARACTER
The Service Key of the service to reload, "" for the default service of the service type
Returns Progress.Lang.Object
The reference to the new Service Instance
Top

Progress.Lang.Object ReloadService (Class, Enum)

Purpose: Reloads the Service instance registered with the given type and
Service Key
Notes: Does not actively delete the existing service instance, it will
just be deregistered. The reloaded service keeps the Service Key
and the default service flag of the replaced registration

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the service to reload
poServiceKey Progress.Lang.Enum
The Enum member providing the Service Key of the service to reload
Returns Progress.Lang.Object
The reference to the new Service Instance
Top

RemoveService (Class, character)

Purpose: Removes the service registered with the specified type and
Service Key from the service container
Notes:

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the service to remove from the service container
pcServiceKey CHARACTER
The Service Key of the service to remove, "" for the default service of the service type
Top

RemoveService (Class, Enum)

Purpose: Removes the service registered with the specified type and
Service Key from the service container
Notes:

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the service to remove from the service container
poServiceKey Progress.Lang.Enum
The Enum member providing the Service Key of the service to remove
Top

RemoveServices (Class)

Purpose: Removes all services registered with the specified type from the
service container
Notes: Removes the registration without a Service Key as well as all
keyed registrations of the service type

Parameters:
poClass Progress.Lang.Class
The reference to the class or interface of the services to remove from the service container


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       14.09.2026 00:55:02