TROClassFactory Class

From RemObjects Wiki
Jump to: navigation, search

This is a Library topic for RemObjects SDK for Delphi
This page is generated from external data, please do not update

InterfacesClassesAliasesImplements

Contents

Overview

TROClassFactory forms the base class of all class factories provided with RemObjects SDK.

Use Case

Class factories are used to register and instantiate service classes to be available for remote requests.

This is usually done by creating a new instance of a class factory in the implementation section of the service's unit by code that is auto-generated from your RODL file.


Location

uROServer.pas

  • Ancestry: TInterfacedObject | TROClassFactory | Descendants

Implemented interfaces


Instance Methods

constructor Create

Creates a new instance of the class factory.


constructor Create(const anInterfaceName: string; aCreatorFunc: TRORemotableCreatorFunc; anInvokerClass: TROInvokerClass)


Parameters:

  • anInterfaceName:
  • aCreatorFunc:
  • anInvokerClass:


destructor Destroy   override



destructor Destroy


CreateInstance   protected virtual



procedure CreateInstance(const aClientID: TGUID; out anInstance: IInterface)


Parameters:

  • aClientID:
  • anInstance:


GetAliasNames   protected



function GetAliasNames: TStringList


GetInterfaceName   protected



function GetInterfaceName: string


GetInvoker   protected



function GetInvoker: IROInvoker


IsInterfaceNameSupported   protected



function IsInterfaceNameSupported(const anInterfaceName: string): Boolean


Parameters:

  • anInterfaceName:


RegisterInterfaceName   protected



procedure RegisterInterfaceName(const anInterfaceName: string)


Parameters:

  • anInterfaceName:


ReleaseInstance   protected virtual

Called whenever a Service instance previously acquired via CreateInstance has finished processing a request. Whether the service instance is actually destroyed or saved for future use will depend on the type of class factory.


procedure ReleaseInstance(const aClientID: TGUID; var anInstance: IInterface)


Parameters:

  • aClientID:
  • anInstance:


UnregisterInterfaceName   protected



procedure UnregisterInterfaceName(const anInterfaceName: string)


Parameters:

  • anInterfaceName:


Events

CreatorFunc



property CreatorFunc: TRORemotableCreatorFunc read delegate: procedure Invoke(out anInstance: IInterface)


Descendants


See Also


Product: RemObjects SDK
Available Editions: RemObjects SDK for .NET, Xcode, Delphi, Java and JavaScript

GlossaryArticlesLibrarySamples

Personal tools
Namespaces

Variants
Actions
Navigation
products
platforms
special
Toolbox