TROClassFactory
From RemObjects Software
This is a RemObjects SDK Architecture entry
Feel free to add your notes to this topic below.
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.
File
- uROServer
Declaration
TROClassFactory = class(TInterfacedObject, IROClassFactory);
Hierarchy
- TInterfacedObject
- TROClassFactory
Methods
| | |
|---|---|
| Create | Creates a new instance of the class factory. |
| CreateInstance | Returns the Service instance to serve the new request. Whether the returned instance is actually created anew or obtained otherwise will depend on the type of class factory. |
| ReleaseInstance | 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. |
See Also
Product: RemObjects SDK
Current version: RemObjects SDK 'Vinci' (5.0)
Lists — Glossary — Features — How To — Components — Tools — Samples — Articles — Architecture — Issues
Categories: Text | RemObjects SDK | Architecture | Class | Delphi
