Skip to content

WIP - Proxy classes - IProxy, TComponentProxy, TModuleProxy, TCacheProxy, TDataSourceConfigProxy - #1157

Draft
belisoful wants to merge 1 commit into
pradosoft:masterfrom
belisoful:proxy
Draft

WIP - Proxy classes - IProxy, TComponentProxy, TModuleProxy, TCacheProxy, TDataSourceConfigProxy#1157
belisoful wants to merge 1 commit into
pradosoft:masterfrom
belisoful:proxy

Conversation

@belisoful

Copy link
Copy Markdown
Member

This is a very interest set of classes.

I'm not the biggest fan of TModuleProxy, but Cache and Data Source Config Proxy would be extremely useful.

The proxy can be the primary and Backing can be changed on the fly for all modules linked to the Proxy rather than changing each one separately.

Also, a subclass of TModuleProxy could serve as a TLazyModule that gives out the lazy proxy, and when it gets called, it would load the lazy module and start calling it through the proxy.

Some interesting options.

@belisoful

Copy link
Copy Markdown
Member Author

These may be needed for Multi-application mode regarding truly global singletons like THttpRequest.

@belisoful belisoful changed the title Proxy classes - IProxy, TComponentProxy, TModuleProxy, TCacheProxy, TDataSourceConfigProxy WIP - Proxy classes - IProxy, TComponentProxy, TModuleProxy, TCacheProxy, TDataSourceConfigProxy Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant