Namespace: Consultingwerk.Framework
Class 
Factory Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.Framework.IFactory, Consultingwerk.Framework.IFactoryRegistry, Ccs.Common.IService

File:Factory
Purpose:Generic Factory implementation
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sat Mar 24 09:31:45 CET 2018
Notes:Supports the Factory custom log entry type; Factory:3 for
detailed logging whenever an object is created, Factory:4
for more details; Factory:2 for loading Factory's from file



Top Method Summary
Options Name Purpose
Progress.Lang.Object CreateInstance (Class) Creates an object instance
Progress.Lang.Object CreateInstance (Class, character) Creates an object instance
Progress.Lang.Object CreateInstance (Class, character, Object[]) Creates an object instance
Progress.Lang.Object CreateInstance (Class, Object[]) Creates an object instance
dispose () Destroy/Shutdown/Anti-Initializer
LOGICAL HasFactory (Class) Returns if the given factory is registered
LOGICAL HasFactory (Class, character) Returns if the given factory is registered
initialize () Initializer/Startup
LoadFromFile (character) Registers object factories from the given file
RegisterFactory (Class, character, Class) Registers an object factory type
RegisterFactory (Class, Class) Registers an object factory type
UnregisterFactory (Class) Registers an object factory type
UnregisterFactory (Class, character) Registers an object factory type

Top Constructor Summary
Options Name Purpose
Factory () Constructor for the Factory class

Top Property Summary
Options Name Purpose
Consultingwerk.Framework.IFactory OverloadingFactory


Method Detail
Top

Progress.Lang.Object CreateInstance (Class)

Purpose: Creates an object instance
Notes: Factory method for object instances referenced by the provided
type (typically an interface)

Parameters:
poType Progress.Lang.Class
The type to create an instance of
Returns Progress.Lang.Object
The created object instance
Top

Progress.Lang.Object CreateInstance (Class, character)

Purpose: Creates an object instance
Notes: Factory method for object instances referenced by the provided
type (typically an interface)

Parameters:
poType Progress.Lang.Class
The type to create an instance of
pcAlias CHARACTER
The alias of the object
Returns Progress.Lang.Object
The created object instance
Top

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

Purpose: Creates an object instance
Notes: Factory method for object instances referenced by the provided
type (typically an interface)

Parameters:
poType Progress.Lang.Class
The type to create an instance of
pcAlias CHARACTER
The alias of the object
poParameters Progress.Lang.Object
An array of parameters to pass to the object's constructor, Holder types will be passed as their Value to the constructor
Returns Progress.Lang.Object
The created object instance
Top

Progress.Lang.Object CreateInstance (Class, Object[])

Purpose: Creates an object instance
Notes: Factory method for object instances referenced by the provided
type (typically an interface)

Parameters:
poType Progress.Lang.Class
The type to create an instance of
poParameters Progress.Lang.Object
An array of parameters to pass to the object's constructor, Holder types will be passed as their Value to the constructor
Returns Progress.Lang.Object
The created object instance
Top

dispose ()

Purpose: Destroy/Shutdown/Anti-Initializer
Notes:

Top

LOGICAL HasFactory (Class)

Purpose: Returns if the given factory is registered
Notes:

Parameters:
poType Progress.Lang.Class
The type of evaluate
Returns LOGICAL
Logical value indicating if the factory for the given type is registered
Top

LOGICAL HasFactory (Class, character)

Purpose: Returns if the given factory is registered
Notes:

Parameters:
poType Progress.Lang.Class
The type of evaluate
pcAlias CHARACTER
The type alias
Returns LOGICAL
Logical value indicating if the factory for the given type is registered
Top

initialize ()

Purpose: Initializer/Startup
Notes:

Top

LoadFromFile (character)

Purpose: Registers object factories from the given file
Notes:

Parameters:
pcFileName CHARACTER
The file name to load factories from
Top

RegisterFactory (Class, character, Class)

Purpose: Registers an object factory type
Notes:

Parameters:
poType Progress.Lang.Class
The type to register
pcAlias CHARACTER
The type alias
poImplementation Progress.Lang.Class
The implementation of the type
Top

RegisterFactory (Class, Class)

Purpose: Registers an object factory type
Notes:

Parameters:
poType Progress.Lang.Class
The type to register
poImplementation Progress.Lang.Class
The implementation of the type
Top

UnregisterFactory (Class)

Purpose: Registers an object factory type
Notes:

Parameters:
poType Progress.Lang.Class
The type to register
Top

UnregisterFactory (Class, character)

Purpose: Registers an object factory type
Notes:

Parameters:
poType Progress.Lang.Class
The type to register
pcAlias CHARACTER
The type alias


Constructor Detail
Top

Factory ()

Purpose: Constructor for the Factory class
Notes:



Property Detail
Top

Consultingwerk.Framework.IFactory OverloadingFactory


Returns Consultingwerk.Framework.IFactory


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       30.03.2026 11:04:17