Bull DPX/20 Uživatelská příručka Strana 129

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 424
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 128
SOM Kernel Reference 1-117
somLocateClassFile Method
Purpose
Determines the file that holds a class to be dynamically loaded.
IDL Syntax
string somLocateClassFile (
in somId classId,
in long majorVersion,
in long minorVersion);
Note: For backward compatibility, this method does not take an Environment parameter.
Description
The SOMClassMgr object uses the somLocateClassFile method when executing
somFindClass to obtain the name of a file to use when dynamically loading a class. The
default implementation consults the Interface Repository for the value of the dllname
modifier of the class; if no dllname modifier was specified, the method simply returns the
class name as the expected filename.
If you override the somLocateClassFile method in a user-supplied subclass of
SOMClassMgr, the name you return can be either a simple, unqualified name without any
extension or a fully qualified file name. Generally speaking, you would not invoke this
method directly. It is provided to permit customization of subclasses of SOMClassMgr
through overriding.
Parameters
receiver Usually SOMClassMgrObject (or a pointer to an instance of a
user-supplied subclass of SOMClassMgr).
classId The somId representing the name of the class to locate.
majorVersion The major version number used to check the compatibility of the class’s
implementation with the callers expectations.
minorVersion The minor version number used to check the compatibility of the class’s
implementation with the callers expectations.
Return Value
The somLocateClassFile method returns the name of the file containing the class.
Original Class
SOMClassMgr
Related Information
Methods: somFindClass, somFindClsInFile, somGetInitFunction, somLoadClassFile,
somUnloadClassFile
Zobrazit stránku 128
1 2 ... 124 125 126 127 128 129 130 131 132 133 134 ... 423 424

Komentáře k této Příručce

Žádné komentáře