Project UML Component Factory Unit Dynamic Library Element The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Original Code is DynamicLibraryElement.pas The Initial Developer of the Original Code is Thierry.Coq Portions created by this individual are Copyright (C) 2000 of this individual. Last modified: 25 oct 2000 Version 1.0 known bugs : 1. for some reason, finalizing dynamically loaded packages very often results in a AV. So I don't call finalize, which is a mistake. Therefore the finalizations of the packages will not work. If anyone has an idea, please contact me ? (thierry.coqWARNING: @centraliens.net)
None.
None.
Name | Description |
---|---|
TDynamicLibraryElementClass | |
TLoadElementProc |
function DLEManager : TDLEManager; |
Procedure InitialiseUnitElements( aManager : TDLEManager); |
procedure SetDLEManager( aManager : TDLEManager); |
function DLEManager : TDLEManager; |
operations below allow to manage the unique DLE manager in the system. There should be only one. (Adaptable Singleton pattern)
Procedure InitialiseUnitElements( aManager : TDLEManager); |
Procedure example that must be implemented for each unit in packages that are to be linked dynamically. The DLE Manager looks for a procedure named like it in each and every unit loaded with the package.
procedure SetDLEManager( aManager : TDLEManager); |
Name | Description |
---|---|
Class TDLEManager | The DLE Manager is designed to manage the addition of new elements, loaded dynamically from files. Of course, in order to be used, the file is a Delphi Execution package, which declares descendents of TDynamicLibraryElement class. |
Class TDynamicLibraryElement | |
Class TPackageDescriptor | A package descriptor is used to maintain the list of packages available |