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
detailled logging whenever an object is created, Factory:4
for more details; Factory:2 for loading Factory's from file
/* 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
+ 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
+ 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


Method Detail
Top

PUBLIC 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

PUBLIC 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

PUBLIC 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

PUBLIC 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

PUBLIC dispose ()

Purpose: Destroy/Shutdown/Anti-Initializer
Notes:

Top

PUBLIC initialize ()

Purpose: Initializer/Startup
Notes:

Top

PUBLIC LoadFromFile (character)

Purpose: Registers object factories from the given file
Notes:

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

PUBLIC 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

PUBLIC 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

PUBLIC UnregisterFactory (Class)

Purpose: Registers an object factory type
Notes:

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

PUBLIC 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

PUBLIC Factory ()

Purpose: Constructor for the Factory class
Notes:



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